#The isnumeric function can be used to determine a string is an integer or not! #for example! s = '5651' if s.isnumeric(): print('True') else: print('False') #i hope i helped you! #Sorry for bad english!