def int_coercable(string):
 try:
  int(string)
  return True
 except ValueError:
  return False

def int_coercable ( string ) : try : int ( string ) return True except ValueError : return False
check if string can be coerced to int .