Homework 1
homework for the first class lesson
albums = [
["Welcome to my Nightmare", "Alice Cooper", 1975, # First album list
{
1 : "Welcome to my Nightmare",
2 : "Devil's Food",
3 : "The Black Widow",
4 : "Some Folks",
5 : "Only Women Bleed",
}
],
["Bad Company", "Bad Company", 1974, # Second album list
{
1 : "Can't Get Enough",
2 : "Rock Steady",
3 : "Ready for Love",
4 : "Don't Let Me Down",
5 : "Bad Company",
6 : "The Way I Choose",
7 : "Movin' On",
8 : "Seagull",
}
],
["Nightflight", "Budgie", 1981,
{
1 : "I Turned to Stone",
2 : "Keeping a Rendezvous",
3 : "Reaper of the Glory",
4 : "She Used Me Up",
}
],
["More Mayhem", "Imelda May", 2011,
{
1 : "Pulling the Rug",
2 : "Psycho",
3 : "Mayhem",
4 : "Kentish Town Waltz",
}
],
]
num4 = [1, 2, 3, 4]
print("please choose 1 out of the 4 albums:")
for data in albums:
print(data[0])
print("")
user = input("dicjkandballs")
user = int(user)
user -= 1
for data in albums[user]:
if type(data) == dict:
print("Songs:")
print(data)
print("")
user2 = input("fucj")
user2 = int(user2)
print("Now playing:")
print(data[user2])