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?
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?
Activity
See 3 photos saved for visual representation
loan_amount country_name time_to_raise num_lenders_total
Method Name
Saved image
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