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)
x=100
def f1():
global x
x=90
def f2():
global x
x=80
print(x)A. 100
B. 90
C. 80
D. Error
Answer: Option A

Join The Discussion