Such as, lista = [300KB, 12MB, 100KB, 1GB], i want to process lista, then change it to [100KB, 300KB, 12MB, 1GB]
How to sort it using simple method?
Such as, lista = [300KB, 12MB, 100KB, 1GB], i want to process lista, then change it to [100KB, 300KB, 12MB, 1GB]
How to sort it using simple method?
"lista" has to be a list of strings.
sortedis your friend here. Sorting Mini-HOW TO