Which of the following is false about global variables in Python?
PYQ EMRS TGT/PGT (ESSE) 2023
Which of the following is false about global variables in Python?
- A.
Global immutable variables require global keyword inside function.
- B.
Global mutable variables do not require global keyword inside function.
- C.
Global keyword is a must for the first time of assignment of a global variable.
- D.
Global variables can be accessed anywhere in the program.
Attempted by 1880 students.
Sign up free to check your answer
Sign up freeLoading lesson…

