5 Matching Annotations
- Jun 2021
-
runestone.colorado.edu runestone.colorado.edu
-
It is legal for a function to access a global variable. However, this is considered bad form by nearly all programmers and should be avoided.
Why?
-
-
runestone.colorado.edu runestone.colorado.edu
-
Activity
See 3 photos saved for visual representation
-
-
runestone.colorado.edu runestone.colorado.edu
-
loan_amount country_name time_to_raise num_lenders_total
-
-
runestone.colorado.edu runestone.colorado.edu
-
Method Name
Saved image
-
-
runestone.colorado.edu runestone.colorado.edu
-
Anytime you have two nested if statements as in the example above, you can combine them into a single if statement by joining the conditions using the and operator. Consider the version below, and think about why this if statement is equivalent in its behavior to the previous version with two nested if statements:
Tip on how to handle nested if statement situations
-