Question: I don't expect you to completely understand functions at this time ( later you will ) . However, I've given you examples of global vs
I don't expect you to completely understand functions at this time later you
will However, I've given you examples of global vs locally scoped variables in
python.
Create a global variable and use it outside and inside a function. You can choose
what the varibales are. Inside the function body, please pass your object to an f
string and print it
I'll give you the function implementation:
#Global Variable Goes Here!
def myfunction:
#Your code will go here. Don't forget to indent! This is the function body!
#This function will have one job! It will print your fstring.
myfunction #Leave this function call alone and exactly where it is It will
give this warning until you add code to the function body!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
