Print "Hello World!" ten times without typing (or pasting) the print function more than once

n=0for n in range(0,10): print('Hellow World!') n=n+1 #or n+=1#

Related Python Mentoring answers

All answers ▸

How do For Loops work?


What are docstrings and how do I use them to improve my code readability?


When do we use a for-loop and when a while-loop?


How would you write a while loop to print all even numbers from 1-10?