?
What will be the output of the following Python code?
What will be the output of the following Python code?
def f(x):
for i in range(5):
yield i
g=f(8)
print(list(g))
def f(x):
for i in range(5):
yield i
g=f(8)
print(list(g))
Join the Discussion
Login to post a comment or share your explanation.
Login