# your code goes herefor i in range(0, 5): num = str(i) print num if num == "2": breakprint "done"
Standard input is empty
0 1 2 done
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!