dimanche 30 décembre 2018

Randint and if statements in python: error

correctPath = random.randint(1,2,3)

if chosenPath == str(correctPath):
   print("Thank you for your help")
   print("this has been altered for creative purposes")
elif chosenPath != str(correctPath):
    print("Thanks in advance.")
else:
   print ("code to be written")

Aucun commentaire:

Enregistrer un commentaire