Question: What does a global statement do inside a function? It tells Python not to create a new local variable and instead to use the global

What does a global statement do inside a function?
It tells Python not to create a new local variable and instead to use the global variable in an assignment statement.
global is used like a comment to indicate that global variables are referenced within a function.
It creates a local copy of a global variable.
It makes the function shareable to the global community.
 What does a global statement do inside a function? It tells

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!