Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import random
def music(songs):
return(random.choice(songs))
sadSongs = ["Bad day by Green Day", "Sound of Silence by Disturbed", "traitor by Olivia Rodrigo", "Easy On Me by Adele", "First Times by Ed Sheeran", "Getting Older by Billie Eilish"]
happySongs = ["Heat Waves by Glass Animals", "Industry Baby by Lil Nas X", "Out Out by Joel Corry", "Feeling Good by Michael Buble", "Sunday Best by Surfaces", "Can't Stop The Feeling by Justin Timberlake", "22 by Taylor Swift", "Shut Up and Dance by Walk the Moon"]
rapSongs = ["Rockstar by Post Malone", "Commitment Issues by Central Cee", "Wow. by Post Malone", "To the Moon by Brennan Savage", "witchblades by Lil Peep", "Rain by Aitch", "Tropical by SL", "Jet Lag A$AP Ferg", "Bad After We by SHY FX"]
rockSongs = ["Silence is Golden by Trash Boat", "Again by Flight 15", "Blessed Be by Spiritbox", "Bleed Me Dry by Memphis May Fire", "In Another Life by Crown The Empire", "Circle The Drain by Wage War", "Akudama by Alpha Wolf", "Doomsday by Architects", "Kingslayer by Bring Me The Horizon"]
electronicSongs = ["Over & Over by Dark Heart", "Oxygen by The Prototypes", "On My Own by Phil Soda", "Understand by James Oliver", "IMY by REAPER", "Oxygen by Gorgon City"]
sunnySongs = ["Heat Waves by Glass Animals", "Feeling Good by Michael Buble", "Don't Stop by Fleetwood Mac", "Castle on the Hill by Ed Sheeran", "Lovely Day by Bill Withers", "It Ain't Me by Kygo", "Final Song by MO"]
rainSongs = ["Dog Days Are Over by Florence + The Machine", "Please, Please, Please Let Me Get What I Want by The Smiths", "I Can't Stand the Rain by Ann Peebles", "Overgrown by James Blake"]
cloudySongs = ["Cloudy Day by Tones And I", "Cold Heart - PNAU Remix by Dua Lipa", "show me by San Holo", "Oceans Away by A R I Z O N A", "Next to Me by SYRE", "Sun Models by ODESZA"]
snowingSongs = ["A Hazy Shade of Winter by Simon & Garfunkel", "New York City by They Might Be Giants", "The Ice Of Boston by Dismemberment Plan", "While I shovel the Snow by The Walkmen", "Coldest Winter by Kanye West", "Snowblind by Black Sabbath"]
songs = int(input ("""What genre do you want?
1: Sad
2: Happy
3: Rap
4: Rock
5: Electronic
6: Sunny
7: Rain
8: Cloudy
9: Snowing
"""))
if songs == 1:
recommendSong = music(sadSongs)
elif songs == 2:
recommendSong = music(happySongs)
elif songs == 3:
recommendSong = music(rapSongs)
elif songs == 4:
recommendSong = music(rockSongs)
elif songs == 5:
recommendSong = music(electronicSongs)
elif songs == 6:
recommendSong = music(sunnySongs)
elif songs == 7:
recommendSong = music(rainSongs)
elif songs == 8:
recommendSong = music(cloudySongs)
elif songs == 9:
recommendSong = music(snowingSongs)
else: ("Invalid")
print (recommendSong)