Logo

Programming-Idioms

History of Idiom 2 > diff from v120 to v121

Edit summary for version 121 by programming-idioms.org:
Restored version 119: off-topic

Version 120

2020-08-28, 09:36:31

Version 121

2020-08-28, 10:18:26

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