total = 0for i in range(0, 10, 2): total += i print(total)
8
20
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!