l = [1,2,3,4,5] for i in range(len(l)): del l[i] print(len(l))
Standard input is empty
4 3 2
Traceback (most recent call last): File "./prog.py", line 4, in <module> IndexError: list assignment index out of range
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!