Advancing a Generator Expression
g = (x * x for x in range(4))
next(g)
next(g)
print(next(g))
What single value does this print? Fill in the exact output.
Sign in to answer questions and track your progress
Sign Ing = (x * x for x in range(4))
next(g)
next(g)
print(next(g))
What single value does this print? Fill in the exact output.
Sign in to answer questions and track your progress
Sign In