Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- songs = ["Like a Rolling Stone", "Satisfaction", "Imagine", "What's Going On", "Respect", "Good Vibrations"]
- playcounts = [78, 29, 44, 21, 89, 5]
- plays = {songs:playcounts for songs, playcounts in zip(songs, playcounts)}
- print(plays)
- plays["Purple Haze"] = 1
- plays["Respect"] = 94
- library = {"The Best Songs": plays, "Sunday Feelings": {}}
- print(library)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement