a = [1,2,3]i = iter(a)print(next(i))print(next(i))print(next(i))print(next(i))
Standard input is empty
1 2 3
Traceback (most recent call last): File "./prog.py", line 6, in <module> StopIteration
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!