Question 1
Which keyword is used to declare a global variable within a function in python?
Question 2
What is the purpose of using non-local variables in python?
Question 3
What happens if you try to modify a global variable inside a function without using the global keyword?
Question 4
What is a local variable in python?
Question 5
What is a constant variable in python?
Question 6
Which keyword is used to define a constant variable in python?
Question 7
Which of the following is true about the lifetime of local and global variables?
Question 8
What is a non-local variable in python?
Question 9
What is a global variable in python?
Question 10
What is the scope of a local variable in python?