Question: 2 . Write a function deDup that takes a list of numbers as a parameter and # returns the list without duplicates. For example, if
Write a function deDup that takes a list of numbers as a parameter and
# returns the list without duplicates. For example, if
# myList "potato"
# then the list returned by printdeDupmyList will look like this:
# "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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
