Sunita is sorting her favorite songs by Artists. She has a list of songs along with the artist's name in the format of song_name-artist_name.
Help her group the songs by artists into a dictionary { artist: [son1, song2] }
. Use a defaultdict
with a default value as a list
. Print the dictionary.