Python Project

Program to remove the duplicate values from the list of elements.

Class 11th CBSE IP

Assignment

Q-8. Program to remove the duplicate values from the list of elements

Solution :- 

l =[]

#Number of elements will be entered by the user
n = int(input(“Enter the number of elements in the list:”))
# for loop to take the input
for i in range(0,n):
# The input is taken from the user and added to the list as the item
        l.append (input(“Enter the item:”))

print(“printing the value of the list items..”,(set(l)))

Output :- 

 

TRY THIS CODE

Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable

Popular Videos

Play Video

UX for Teams

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

Play Video

SEO & Instagram

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer