De-dupe and sort list at the same time
myList = ['b','c','a','a']
myList = sorted(set(myList))
Credits:
https://stackoverflow.com/questions/479897/how-to-remove-duplicates-from-python-list-and-keep-order
myList = ['b','c','a','a']
myList = sorted(set(myList))
Credits:
https://stackoverflow.com/questions/479897/how-to-remove-duplicates-from-python-list-and-keep-order
Comments
Post a Comment