Logo

Programming-Idioms

History of Idiom 2 > diff from v62 to v63

Edit summary for version 63 by tyla:
[Python] cuz

Version 62

2019-03-25, 14:45:54

Version 63

2019-03-25, 14:46:09

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