-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeAlbum.py
More file actions
26 lines (18 loc) · 796 Bytes
/
makeAlbum.py
File metadata and controls
26 lines (18 loc) · 796 Bytes
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
def make_album(artist, album, n_of_tracks = ''):
if n_of_tracks == '':
info = {'Artist Name':artist.title(),'Album Title':album.title()}
else:
info = {'Artist Name':artist.title(),'Album Title':album.title(),'No Of Tracks':int(n_of_tracks)}
return info
while True:
artistName = input("(Press 'q' anytime to quit)\nEnter the name of the artist: ")
if artistName == 'q':
break
albumName = input("(Press 'q' anytime to quit)\nEnter the name of the album: ")
if albumName == 'q':
break
tracksCount = input("(Press 'q' anytime to quit)\nEnter the number of tracks(Press enter if you don't know): ")
if tracksCount == 'q':
break
album_info = make_album(artistName, albumName, tracksCount)
print(album_info)