-
Notifications
You must be signed in to change notification settings - Fork 0
/
8_8.py
27 lines (24 loc) · 795 Bytes
/
8_8.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
def make_album(artist_name, album_title, tracks=""):
if tracks:
albumDictionary = {'Artist Name' : artist_name.title(),
'Album Title' : album_title.title(),
'Tracks' : tracks
}
else:
albumDictionary = {'Artist Name': artist_name.title(),
'Album Title': album_title.title()
}
return albumDictionary
prompt1 = "Enter Artist name (press q for quit) "
prompt2 = "Enter Album title (press q for quit) "
while True:
name = input(prompt1)
if name =='q':
break
else:
album = input(prompt2)
if album =='q':
break
else:
print(make_album(name,album))
print("")