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 ▸

Write a function that takes a list of numbers as input, and outputs the average of the numbers. The function should catch any errors.


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


What is the difference between using range() and a list of values?


What are the main data structures that I can use in Python