Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- valid_albums = [row for row in albums if return_valid_year(row["Year"])]
- most_recent_album = max(valid_albums, key = lambda x: x["Year"])
- print("Most recent album is \"{0}\" by \"{1}\".".format(most_recent_album["Album"], most_recent_album["Artist"]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement