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 would you write a while loop to print all even numbers from 1-10?


What is the difference between a float and an integer variable type?


Describe both For-loops and While-loops and explain how you can simulate the effect of a for loop with a while loop with an example.


how to compute the factorial of a number.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences