What do you call a variable that is defined inside a function?
a local variable
If the variable is defined inside a function, can another function use that
If the variable is defined inside a function, can the code outside
all functions use that variable?
What do you call a variable that is defined outside any
a global variable
Can a function use a variable defined outside any function?
What do you call the variables that are listed inside the parentheses
of a function header?
Where do parameters get their values?
from the corresponding argument in the function call
Write the function header for a function named calculate_interest
that has two variables named principle and interest
inside the parentheses, where the default value for interest is 5.
def calculate_interest(principle, interest=5)
What do you call the expressions (values), inside a function call?
Write the function cheer that has a single variable called team
in its function header and prints a cheer for that team.
print("Go " + team + "!")