def is_integer_like(val):
 try:
  int(val)
  return True
 except (TypeError, ValueError, AttributeError):
  return False

def is_integer_like ( val ) : try : int ( val ) return True except ( TypeError , ValueError , AttributeError ) : return False
returns validation of a value as an integer .