Question: Using Python 3.6 I need help with the following, I need to Write a function function named dedupe that accepts two lists as parameters, for

Using Python 3.6 I need help with the following, I need to Write a function function named "dedupe" that accepts two lists as parameters, for example dedupe(list_one, list_two).  The function will return a new list that contains only unique values that occurred in either one of the lists. 

The function must pass a test written with this code

def test_question_one(): try: l_one = [1, 2, 3, 4, 1] l_two = [2, 5, 6, 7] deduped = dedupe(l_one, l_two) if (deduped.count(2) > 1) or len(deduped) < 7: raise  else: print('Question One Passed! Great Job!') except: print('Ooops, please try question one again.') 

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!