Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
System Design
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
What is the difference between global and nonlocal keywords in Python?
Auto Skip
Report Issue
A.
Both do the same thing
B.
"global" is only for numbers, "nonlocal" only for strings
C.
"global" accesses module scope, "nonlocal" accesses enclosing function scope
D.
"nonlocal" accesses module scope, "global" accesses enclosing function scope
Previous
Next