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