Vidyalelo
Python · Q44

Exception Handling in Python

Programming · Python · question 44

Q44

What will be the output of the following Python code? #generator def f(x): yield x+1 g=f(8) print(next(g))

A.
8
B.
9
Answer
C.
7
D.
Error

Answer: Option B

Solution

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