[ create a new paste ] login | about

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

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


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


Create a new paste based on this one


Comments: