Run
x = 'a123654' if x.isnumeric(): print('x is numeric.') else: print('x is not numeric.')
Output