if isdigit convert to string code example
Example 1: isdigit python
s='12'
s.isdigit()#returns True
Example 2: python sort isdigit
>>> ''.join(filter(str.isdigit, 'image101.jpg'))
'101'
>>> int(''.join(filter(str.isdigit, 'image101.jpg')))
101
s='12'
s.isdigit()#returns True
>>> ''.join(filter(str.isdigit, 'image101.jpg'))
'101'
>>> int(''.join(filter(str.isdigit, 'image101.jpg')))
101