for i in range(5): print("Hello World")
It can be achieved in variety of ways: Easiest: for i in range(3): print("Hello World")