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

Comments

Popular posts from this blog

Dive into the World of Fractional Shares: Your Path to Diversified Investments

High Gas Prices: How They Impact You and the Economy

Financial Chronicles: Decoding Market Signals and Investment Strategies