python isdigit() isstring code example
Example 1: isdigit python
s='12'
s.isdigit()#returns True
Example 2: python sort isdigit
from natsort import natsorted
my_list = ['image101.jpg', 'image2.jpg', 'image1.jpg']
natsorted(my_list)
s='12'
s.isdigit()#returns True
from natsort import natsorted
my_list = ['image101.jpg', 'image2.jpg', 'image1.jpg']
natsorted(my_list)