Question: 2 . Write a function deDup that takes a list of numbers as a parameter and # returns the list without duplicates. For example, if

2. Write a function deDup that takes a list of numbers as a parameter and
# returns the list without duplicates. For example, if
# myList =[3,3,5,8,1,8, "potato"]
# then the list returned by print(deDup(myList)) will look like this:
# [3,5,8,1, "potato"]
# HINT: Dont try to 'remove' the duplicates from the original list.
# Create a new list with only unique items in it.
#create a new list after defining deDup

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!