[ create a new paste ] login | about

Link: http://codepad.org/4dTMLylz    [ raw code | output | fork ]

Python, pasted on May 17:
1
2
3
a = [1,2,3]
b = iter(a)
c = next(a)


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


Create a new paste based on this one


Comments: