for i in range(4): # 4 = number of times you want to run the code print("Hello World")
code_count = 0 running = True while running: print("Hello World") code_count += 1 # 4 = how many times you want to run the code if code_count >= 4: running = False