Logo

Programming-Idioms

History of Idiom 2 > diff from v61 to v62

Edit summary for version 62 by tyla:
[Python] because theirs does not fully work

Version 61

2018-08-12, 11:44:18

Version 62

2019-03-25, 14:45:54

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Illustration

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

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