85. Problem to remove duplicate items from the list using set.

In this Python list program, we will take a user input as a list and remove duplicate items from the list using set with the help of the below-given steps.

Remove duplicate items from list:

Steps to solve the program
  1. Take a list as input.
  2. Add elements from the given list into the new list after removing duplicate items using the set() function.
  3. Print the new list to see the output.

Output :

Related Articles

Create a dictionary with lists

Insert sublist into the list at specific index

Leave a Comment