Computer Science, asked by VISHALKUMARV22, 4 months ago

Write a Python program to remove duplicates from a list.

Answers

Answered by Anonymous
1

Answer:

A List with Duplicates. mylist = ["a", "b", "a", "c", "c"] ...

Create a Dictionary. mylist = ["a", "b", "a", "c", "c"] ...

Convert Into a List. mylist = ["a", "b", "a", "c", "c"] ...

Print the List. ...

Create a Function. ...

Create a Dictionary. ...

Convert Into a List. ...

Return List.

Answered by nandanipaul123
2

Explanation:

Frist we have a list that contains duplicates:

1. A list with duplicates. mylist = [ " a " , " b " , " a " , " c " , " c " ]

2. Create a Dictionary. mylist = [ " a " , " b " , " a " , " c " , " c " ]

3. Convert into a list. mylist = [ " a " , " b " , " a " , " c " , " c " ]

4. print the list.

5. create a function.

6. create a Dictionary.

7. convert into a list.

8. return list.

hope it help you

your introduction friend...❤

Similar questions