Examveda

What will be the output of the following Python code?
def f(): x=4
x=1
f()
x

A. Error

B. 4

C. Junk value

D. 1

Answer: Option D


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python