jeudi 15 décembre 2016

Is it possible to create a new list from a shuffled list?

OriginalName = ["a", "b", "c"]

ShuffleList = random.shuffle(OriginalName)
print ShuffleList

When I run the above, it returns as 'None'. I am trying to create a new list once it has been shuffled.

I want to create another list that has been created randomly and may resemble ["c", "a", "b"]




Aucun commentaire:

Enregistrer un commentaire