MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of the code shown below? def f(x): yield x+1 print("test") yield x+2 g=f(10) print(next(g)) print(next(g)) |
| A. | No output |
| B. | 11 test 12 |
| C. | 11 test |
| D. | 11 |
| Answer» C. 11 test | |