Programming-Idioms

History of Idiom 2 > diff from v18 to v19

Edit summary for version 19 :

Version 18

2015-10-31, 12:18:45

Version 19

2015-11-30, 12:37:23

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Code
for i in range(10):
    print "Hello"
Code
for i in range(10):
    print "Hello"
Comments bubble
Indention is mandatory
Comments bubble
Indention is mandatory