Vidyalelo
Python · Q64

Functions in Python

Programming · Python · question 64

Q64

What will be the output of the following Python code? x=100 def f1(): global x x=90 def f2(): global x x=80 print(x)

A.
100
Answer
B.
90
C.
80
D.
Error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board