1. Fix the last song
Fix the bug Easy ✓ CompletedThis code should store the last song of the playlist in last_song and print it, but it raises an IndexError. Fix it so it still works if songs are added to or removed from the playlist.
playlist = ["Intro", "Song A", "Song B", "Outro"]
last_song = playlist[len(playlist)]
print("Last song:", last_song)playlist = ["Intro", "Song A", "Song B", "Outro"]
last_song = playlist[-1]
print("Last song:", last_song)