def reverse_ip(ip_addr):
 return ipaddress.ip_address(ip_addr).reverse_pointer

def reverse_ip ( ip_addr ) : return ipaddress . ip_address ( ip_addr ) . reverse_pointer
returns the reversed ip address .