Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 6)
6.
What is the purpose of the global keyword inside a function?
Declares a global variable
Specifies the scope of a function
Converts a local variable to a global variable
Prints a variable to the console
Answer: Option
Explanation:
The global keyword is used to indicate that a local variable should be treated as a global variable.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.