#the number is how many times you want to loop
for i in range (number):
#here where you put your looping code
#for example
for i in range (4):
print(Hello World)
print(Hi World)
#output
Hello World
Hi World
Hello World
Hi World
Hello World
Hi World
Hello World
Hi World
#check out more:https://www.askpython.com