def intget(integer, default=None):
 try:
  return int(integer)
 except (TypeError, ValueError):
  return default

def intget ( integer , default = None ) : try : return int ( integer ) except ( TypeError , ValueError ) : return default
returns integer as an int or default if it cant .