I am having a problem with Python 3. I just want to shuffle an array list in a new function. The following is my code:
def otherorder(array, if_randomized=True):
pivot = random.shuffle(array)
print(pivot)
If I do the following in my shell: otherorder([2, 32, 1, 44, 27])
There is no Output. Can anybody help me please?
Aucun commentaire:
Enregistrer un commentaire