Question: Remove Duplicates 2 . Write a python function what will remove all the duplicated elements from the list. The function will take the list as

Remove Duplicates 2. Write a python function what will remove all the duplicated elements from the list. The function will take the list as its parameter and return the list containing unique elements.
For Example,
remove_duplicate2([1,2,3,4,2,5,4,6]) must return [1,2,3,4,5,6]
remove_duplicate(['apple', 'bannana', 'orange', 'apple', 'mango', 'bannana'] must return ['bannana', 'orange', 'apple', 'mango']
remove_duplicate(['Apple', 'baNNana', 'orange', 'apple', 'mango', 'bannana'] must return ['bannana', 'orange', 'apple', '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, Bannana & baNNana are the same.

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 Finance Questions!