Vidyalelo
Python · Q21

Exception Handling in Python

Programming · Python · question 21

Q21

What will be the output of the following Python code? def f(x): yield x+1 print("test") yield x+2 g=f(9)

A.
Error
B.
test
C.
test
10
12
D.
No output
Answer

Answer: Option D

Solution

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