Question: Exercise 6 . 4 . 3 Remove Duplicates = = = = = = = = = = = = = = = = =

Exercise 6.4.3 Remove Duplicates
================================
Write a python function what will remove all the duplicated elements from the list. The function will take the
list of strings as its parameter and return the list containing unique elements.
For Example,
remove_duplicate([1,2,3,4,2,5,4,6]) must return [1,2,3,4,5,6]
remove_duplicate(['apple', 'banana', 'orange', 'apple', 'mango', 'banana'] must return
['apple', 'banana', 'orange', 'mango' ]
remove_duplicate(['Apple', 'baNana', 'orange', 'apple', 'mango', 'banana'] must return
['apple', 'banana', 'orange', 'mango' ]
Pay attention to the order of items in the returned list. The presence of a letter in the list in any case does not
change the item. For example, Banana & baNana are the same.
"""
#DON'T REMOVE!!
list1=[1,2,3,4,2,5,4,6]
list2=['apple', 'banana', 'orange', 'apple', 'mango', 'banana']
list3=['Apple', 'baNana', 'orange', 'apple', 'mango', 'banana']
# Complete the following function
def remove_duplicate(a_list):
return

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!