i was curious on how to randomly select an item from a list? for example you want to randomly choose an item from a list to print something. In the example code below i make a list with random items in it and i want the print to say "the random item is" and then a random item from the list. Sorry if this is a bit unclear if you want me to explain it better just ask :) Thanks
#Example
random = ["random1", "random2", "random3"]
print("Random item is " + "Random Item"???)
Aucun commentaire:
Enregistrer un commentaire