vendredi 21 octobre 2022

How to refer to a randomised choice [duplicate]

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