Answers for "how to make a repeated loop in python"

0

how to make a repeated loop in python

variable = 'thing'
for i in range(50):
  print(variable)
 
# or you can do something like this
for i in range(50, 2):
  print(variable)
  
# and a while loop repeats forever
while True:
  print(variable)

# a while loop also works like this
runcheck = True
while runcheck:
  for i in range(10):
    print(variable)
  runcheck = False
Posted by: Guest on June-27-2021

Code answers related to "how to make a repeated loop in python"

Python Answers by Framework

Browse Popular Code Answers by Language