This question already has an answer here:
How can I choose a random element from a list in Python 3 ?
l=[1,2.1,"c",[4]] #for example
Now I want to use some functions, method or whatever, that will return a random element every time I apply it to l
.
Aucun commentaire:
Enregistrer un commentaire