dimanche 30 décembre 2018

Randint won't execute

Why does this error pop at the first line:

NameError: name 'random' is not defined

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