I always get a syntax error when trying to run this, I'm trying to make it into an infinite loop which will display a message once the desired number is generated. And if this is possible to do. PS, I'm using python 3.6.
import random
random.seed(a=None)
print (random.randint(999, 99999)
if input == ('2204') ,
print("Insert text here")
else print (random.randint(999, 99999))
Aucun commentaire:
Enregistrer un commentaire