Get unique values from a list in python [duplicate]
First declare your list properly, separated by commas. You can get the unique values by converting the list to a set. If you use it further as a list, you should convert it back to a list by doing: Another possibility, probably faster would be to use a set from the beginning, instead of a … Read more