Answers for "print unique elements from a list python"

3

how to find unique values in list in python

mylist = ['nowplaying', 'PBS', 'PBS', 'nowplaying', 'job', 'debate', 'thenandnow']
myset = set(mylist)
print(myset)
Posted by: Guest on February-25-2021

Code answers related to "print unique elements from a list python"

Python Answers by Framework

Browse Popular Code Answers by Language