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