Q:

shuffle pyhton

import random
    
mylist = ["apple", "banana", "cherry"]
random.shuffle(mylist)

print(mylist)

// shuffled list
2

Related

New to Communities?

Join the community