l=['a', 'b', 'c', 'd', 'e', 'f', 'g']for i in l: print(i, len(l)) l=l[1:]
Standard input is empty
a 7 b 6 c 5 d 4 e 3 f 2 g 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!