Đào Mỹ Linh
Member
What will be the output of the following Python code?
A. Error
B. test
C.
test
10
12
D. No output
Code:
def f(x):
yield x+1
print("test")
yield x+2
g=f(9)
B. test
C.
test
10
12
D. No output