How do I refer to a randomised choice? I want the program to print and speak the same choice it made from the list. Code so far:
speaklist = ["wassup", "hello", "how do I help?"] speak(random.choice(speaklist))
I want to add a:
print(same thing it had chosen from the list)
Aucun commentaire:
Enregistrer un commentaire