# repeat some code n times n = 5 # with a for loop for i in range(n): # or range(0, n) # or range(0, n, 1) # the things to repeat are indented print("Hello") # with a while loop i = 0 while i < 5: #things to repeat print("Good bye") i = i + 1