Run
x = "123456abc" if x.isnumeric(): print('Given string is NUMERIC.') else: print('Given string is NOT NUMERIC.')
Output