Vidyalelo
Python · Q8

Functions in Python

Programming · Python · question 8

Q8

What is the purpose of the global keyword do when used in a function?

A.
It allows a variable to be modified outside the current scope
Answer
B.
It defines a new variable
C.
It defines a function
D.
It imports a module

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board