Write a program to shuffle and print the list [3,6,7,8].


Topic: Write a program to shuffle and print the list [3,6,7,8].

Solution

from random import shuffle
li = [3, 6, 7, 8]
shuffle(li)
print(li)



List all Python Programs