1.

What is the output of the code shown below? #generator def f(x): yield x+1 g=f(8) print(next(g))

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


Discussion

No Comment Found