for i in range(1, 6): # Loops from 1 to 5 print(i) x = 0while x < 5: print(x) x += 1
Standard input is empty
1 2 3 4 5 0 1 2 3 4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!