Loops
MATTHEWBECHTEL (124)

Does anyone now how to loop something?

You are viewing a single comment. View All
Answered by ArchieMaclean (781) [earned 5 cycles]
View Answer
PAULX (19)
#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