77.
What will be the output of the following Python code?
x = 50
def func():
    global x
    print('x is', x)
    x = 2
    print('Changed global x to', x)
func()
print('Value of x is', x)

79.
What is the purpose of the assert statement in Python?

Read More Section(Functions in Python)

Each Section contains maximum 100 MCQs question on Functions in Python. To get more questions visit other sections.