Q. Write a program to read a list of elements. Modify this list so that it does not contain any duplicate elements, i.e., all elements occurring multiple times in the list should appear only once.
Answer :-
lst = eval(input("Enter a list :-"))
for i in range(len(lst)) :
for j in lst :
if lst.count(j) > 1 :
lst.remove(j)
print("New List :-",lst)
very very helpfull
ReplyDeleteThank you 😊😊☺️
Deleteeasy language coding
ReplyDeletethanks bro aapki vajah se computer notebook khatam ho pati h
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )