Examveda

What will be the output of the following Python code?
x=1
def cg():
	global x
	x=x+1	
cg()
x

A. 2

B. 1

C. 0

D. Error

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python