a = []for i in xrange(100): a.append(i)print len(a)for i in a: a.remove(i)print len(a)
Standard input is empty
100 50
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!