?
What will be the output of the following Python code?
What will be the output of the following Python code?
#generator
def f(x):
yield x+1
g=f(8)
print(next(g))
#generator
def f(x):
yield x+1
g=f(8)
print(next(g))
Join the Discussion
Login to post a comment or share your explanation.
Login