samedi 14 janvier 2017

python random sorting with no repeat

I want to make no repeat sorting list as that.

exampe list here.

inpit : A_list = ["a","a","a","b","b","c"]
result : A_list = ["a","b","c","a","b","a"]

I use random algorithm but I can't make that. How can make this array?




Aucun commentaire:

Enregistrer un commentaire