Vidyalelo
Python · Q91

Functions in Python

Programming · Python · question 91

Q91

What will be the output of the following Python code? def f1(x): global x x+=1 print(x) f1(15) print("hello")

A.
error
Answer
B.
hello
C.
16
D.
16
hello

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board