How do I save a random string from a list so I can recall the exact thing later in the code? For example:
name = ['Hans', 'Peter', 'Eliza']
print('Your name is ' + random(name) + '!')
print(name)
What can I use here in place of random(name)?
Aucun commentaire:
Enregistrer un commentaire