Question: Exercise 4: normalize_artist_set (2 points) Complete the function, normalize_artist_set(artist_set), where artist_set is a Python set of unprocessed artist names. It should return a Python set
Exercise 4: normalize_artist_set (2 points) Complete the function, normalize_artist_set(artist_set), where artist_set is a Python set of unprocessed artist names. It should return a Python set of normalized artist names, per Exercise 2 For instance, narnalize_artist_set('Alicia Keys ft. Jay-z', 'Lucio Battisti', 'The Police) should return ('the police', 'lucio battisti', 'alicia Keys jay z'} Note: You may reuse your function from Exercise 2, if you are confidentitis bug-free, otherwise, we recommend using the precomputed values in artist translation_table In [397): def nornalize_artist_set(artist_set): ### YOUR CODE HERE NEP File *
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
