Answers for "how to repeat code in python"

2

how to reapete the code in python

for i in range(4):  # 4 = number of times you want to run the code
  print("Hello World")
Posted by: Guest on July-12-2020
0

How to repeat a python file

while True:
    cmd = raw_input('Do you want to quit? Enter 'q'!')
    if cmd == 'q':
        break
Posted by: Guest on August-13-2021

Code answers related to "how to repeat code in python"

Python Answers by Framework

Browse Popular Code Answers by Language