Logo

Programming-Idioms

History of Idiom 2 > diff from v90 to v91

Edit summary for version 91 by cissoid:
[Python] Python 2 is retired.

Version 90

2019-09-26, 22:05:53

Version 91

2019-09-27, 02:17: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")
Comments bubble
Indention is mandatory
Comments bubble
Indention is mandatory