Answers for "python scramble up elements in list"

0

python scramble up elements in list

>>> import random
>>> thelist = ['a', 'b', 'c', 'd']
>>> random.shuffle(thelist)
>>> thelist
['d', 'a', 'c', 'b']
Posted by: Guest on January-15-2021

Code answers related to "python scramble up elements in list"

Python Answers by Framework

Browse Popular Code Answers by Language