Examveda

What will be the output of the following Python code?
def f1():
    x=15
    print(x)
x=12
f1()

A. Error

B. 12

C. 15

D. 1512

Answer: Option C


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python