Logo

Programming-Idioms

History of Idiom 2 > diff from v127 to v128

Edit summary for version 128 by SUMIT KUMAR JHA:
[Python] for school

Version 127

2020-10-10, 11:45:25

Version 128

2020-10-19, 18:10:41

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