Logo

Programming-Idioms

History of Idiom 2 > diff from v129 to v130

Edit summary for version 130 by fg:
[Python] ssss

Version 129

2020-10-19, 18:11:38

Version 130

2020-10-20, 19:10:34

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\n"*10)
Code
print("Hello world\n"*10)
Demo URL
http://ideone.com/BF7qbj
Demo URL
http://ideone.com/BF7qbj