Vignesh likes his playlists to all be unique. But sometimes Vignesh accidentally adds the same song to different playlists. Program a function that does the following:
asks the user to input a song from the list
outputs the amount of times the song appears from all 3 playlists
returns and outputs True if the track is exclusively in one playlist
returns and outputs False if the track is in multiple playlists
Run this code for two song inputs
Bad habit by Steve Lacy
Solo by Future
(Remember to screenshot outputs for both songs)
Starter code:
playlist1 = ["Solo by Future", "After Dark by Mr.Kitty","Those Eyes by New West","Golden Hour by JVKE","505 by Arctic Monkeys"]
playlist2 = ["No Surprises by Radiohead", "Viva La Vida by Coldplay","Woo by Rihanna", "Bad habit by Steve Lacy", "Hope by NF"]
playlist3 = ["Glue Song by beabadoobee", "About You by 1975","Nonsense by Sabrina Carpenter", "Bad habit by Steve Lacy", "Midnight Rain by Taylor Swift"]
song = input("What song do you want to check? ")
num_of_appears = 0