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

Đạt Michio

New member
What will be the output of the following Python code?
Code:
x=100
def f1():
    global x
    x=90
def f2():
    global x
    x=80
print(x)
A. 100
B. 90
C. 80
D. Error
 

Tìm kiếm

Back
Top