Open In App

Python | Namespaces and Scope Quiz | Question 23

How can you access a global variable from within a function in Python?

(A)



Use the access keyword

(B)



Use the global keyword

(C)

Use the outer keyword

(D)

Use the variable name directly

Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :
Uncategorized