lundi 26 juillet 2021

Newbie learning | Why dont this random.shuffle work?

import random

##Why not working :(
lista = []
random_values = "Ko","Bil","Tv"
lista.append(random_values)
random.shuffle(lista)
print(lista)

I dont understand why this wont work...The shuffle wont shuffle the list.




Aucun commentaire:

Enregistrer un commentaire