lst = list(range(10))for n in lst: lst.remove(n) print(lst)
Standard input is empty
[1, 3, 5, 7, 9]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!