Header Ads Widget

Write a Python program to shuffle and print a specified list.

solution:--
from random import shuffle
colour=["red","blue","white","purple","pink"]
shuffle(colour)
print(colour)

Output:-

['pink', 'blue', 'purple', 'white', 'red']


Process finished with exit code 0




Post a Comment

0 Comments