?
What will be the output of the following Python code?
What will be the output of the following Python code?
x=1
def cg():
global x
x=x+1
cg()
x
x=1
def cg():
global x
x=x+1
cg()
x
Join the Discussion
Login to post a comment or share your explanation.
Login