Logo

Programming-Idioms

History of Idiom 2 > diff from v17 to v18

Edit summary for version 18 by :

Version 17

2015-10-29, 14:05:11

Version 18

2015-10-31, 12:18:45

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(0, 10):
	print "Hello"
Code
for i in range(10):
    print "Hello"
Comments bubble
Tabulation is mandatory
Comments bubble
Indention is mandatory