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

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 * line 4 Syntaxirror: unexpected EOF while parsing In [ ]: Demo cell: normalize_artist_set({'Alicia Keys ft. Jay-z 'Lucio Battisti The Police')) expected output: "falicia neysey Lucio battithe police In 11. Test celli texnormaleriet (points) New ALITOGRADER TEST DO NOT NENOVE we fron testing tools import text check print("Testing) for trial in range(250) at1_44_check(normalitertist let) True

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!