Loops
MATTHEWBECHTEL (125)

Does anyone now how to loop something?

You are viewing a single comment. View All
Answered by ArchieMaclean (899) [earned 5 cycles]
View Answer
PAULX (21)
#this is repeating infinitely
x = 2
while x > 1:
  print("Hi world.")

#this is repeating 10 times
x = 10
  while x > 0:
  print("Hi world")
  x = x - 1