Logo

Programming-Idioms

History of Idiom 2 > diff from v122 to v123

Edit summary for version 123 by mg:
[Python] learning

Version 122

2020-10-01, 17:00:38

Version 123

2020-10-06, 15:47:27

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):
    pyautogui.position()
Code
for i in range(1, 9):
	print"Hello World"

Comments bubble
Indention is mandatory
Comments bubble
Indention is mandatory