I have some files and I want to process them. The file names are like this: 14K.txt, 50K.txt, 100K.txt etc. I am opening them in this way
import os
path='/blabla/my_laptop/'
filelist = os.listdir(path)
for i in sorted (filelist):
...
The problem is the files are opening in this way: 100K.txt, 19K.txt, 50K.txt. But I want to open them like this: 19K.txt, 50K.txt, 100K.txt. Can anyone please help me how to do this?