I am trying to make it print a bunch of numbers if the user does not type "stop" forever. The code gives me an error at the else line.
import random
breaker= input()
while True:
if breaker =="stop":
print ("You found out how to stop the code!!!"
else:
print(random.randint(100000000000000000000000000000000000000000000000000000000000000000000000000, 1000000000000000000000000000000000000000000000000000000000000000000000000000))
import time
time.sleep(3)
Aucun commentaire:
Enregistrer un commentaire