Run
x = "$12345+89" if x.isdigit(): print('Given string is DIGIT.') else: print('Given string is NOT DIGIT.')
Output