Does anyone now how to loop something?
Answered by ArchieMaclean (914) [earned 5 cycles]
# does 10 times for n in range(10): print(n) myarray = ["a","b","c"] # repeats for each item in the array for item in myarray: print(item) x = 0 # conditional loop while x<100: print(x) x+= 1 # loop forever (don't do this unless you know what you're doing, a # nd you're limiting how fast you can go through it) while True: print("oh dear, repl crashed")
Please upvote if this helps :)
Ok umm also is there a way to use Time.Sleep(1) but with a decimal as an time interval? For example: Time.Sleep(1.65) It would be super useful.