Logo

Programming-Idioms

History of Idiom 2 > diff from v119 to v120

Edit summary for version 120 by a:
[Python] editor

Version 119

2020-07-15, 22:57:45

Version 120

2020-08-28, 09:36:31

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(10000):
    print("1 1")
    print("1")
Comments bubble
Indention is mandatory
Comments bubble
Indention is mandatory