Vignesh likes to use the shuffle play function on Spotify so that he gets a diverse and unique listening experience. Shuffling happens at random.
Output a random track number e,g. "Daydreaming by Harry Styles" is 0 AND its track name. Use a count loop to output this three times.
(Hint: explore the import random function)
Use the following code as a starting point:
import random
track = [["Daydreaming by Harry Styles"],
[ "Workin Out by JID"],
["Old Love by yuji"],
["Eventually by Tame Impala"],
["After Hours by The Weekend"],
["Ghostin by Ariana Grande"],
["Hey, Mickey! by Baby Tate"],
["Low by SZA"],
["Pink + White by Frank Ocean"],
["Here With Me by d4vd"]]
Example of output (everyone's output will be different since it is randomised):
9
['Here With Me by d4vd']
5
['Ghostin by Ariana Grande']
7
['Low by SZA']