Question: What does the globalkeyword do ? The global keyword is required for all variable declarations. You will get an error message if you do not

What does the globalkeyword do?
The global keyword is required for all variable declarations. You will get an error message if you do not use it.
Without the globalkeyword, all variables will be local variables.
The global keyword allows for a global variable to be modified inside a function.
The global keyword allows for a global variable to be seen inside a function, but it cannot be modified.

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 Programming Questions!