samedi 1 janvier 2022

Changing a variable in list

Let: x = [a, b, c] = [1, 2, 3]

I would like to use the random.choice function to randomly pick and change any of the three variables, thereby change the list x. How can I do so?




Aucun commentaire:

Enregistrer un commentaire