Logo

Programming-Idioms

History of Idiom 2 > diff from v71 to v72

Edit summary for version 72 by ekn:
[Python] Needs a new line to be consistent with other languages

Version 71

2019-09-26, 15:25:28

Version 72

2019-09-26, 15:27:12

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
print("Hello"*10)
Code
print("Hello\n"*10)
Comments bubble
python 3
Comments bubble
python 3