Logo

Programming-Idioms

History of Idiom 2 > diff from v106 to v107

Edit summary for version 107 by :
Restored version 105

Version 106

2019-12-08, 17:07:57

Version 107

2019-12-08, 20:14:28

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