def is_bogus_ip(ip):
 return (ip.startswith('0.') or ip.startswith('127.'))

def is_bogus_ip ( ip ) : return ( ip . startswith ( '0.' ) or ip . startswith ( '127.' ) )
checks if the given ip address is bogus .