Question
Please write a program to shuffle and print the list [3,6,7,8].
Hints
Use shuffle() function to shuffle a list.
Solution
from random import shuffle li = [3,6,7,8] shuffle(li) print li
Next(random)