Answers for "how do i remove all the rpeated items in a list"

9

python remove duplicates from list

# remove duplicate from given_list using list comprehension
res = []
[res.append(x) for x in given_list if x not in res]
Posted by: Guest on June-13-2020

Code answers related to "how do i remove all the rpeated items in a list"

Python Answers by Framework

Browse Popular Code Answers by Language