Receive our weekly advanced programming tips for FREE
19.April
How to make a unique values list
0
| 0 votes
Autor: bookkeeper
Chapter: Python

How do i make a list with unique values?

Very easy use set!

#The faster way to get a unique list

l = ['a', 'b', 'a', 'e', 'b']

#use set
print set(l)