1 2
a = [1,2,3] b = next(a)
1 2 3 4
Traceback (most recent call last): Line 2, in <module> b = next(a) NameError: name 'next' is not defined