Logo

Programming-Idioms

History of Idiom 2 > diff from v105 to v106

Edit summary for version 106 by dfdfdfd:
[Python] dfdf

Version 105

2019-11-23, 23:00:10

Version 106

2019-12-08, 17:07:57

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("GARVIT")
Comments bubble
Indention is mandatory
Comments bubble
Indention is mandatory