Logo

Programming-Idioms

History of Idiom 2 > diff from v117 to v118

Edit summary for version 118 by fmn:
[Python] xf

Version 117

2020-05-31, 10:30:39

Version 118

2020-07-14, 18:46:59

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

Code
print("Hello\n"*10)
Code
print("Hello\n"*10)yhvg
Demo URL
http://ideone.com/BF7qbj
Demo URL
http://ideone.com/BF7qbj