May I know other approach to extract the int
from a string.
str_int='S1'
int ( "".join ( [xx for xx in list ( str_int) if xx.isdigit ()] ) )
I think my current approach is overkill. Should this post is considered duplicate,please link me to the appropriate OP.