def ip4_hex(arg):
 numbers = list(map(int, arg.split('.')))
 return '{:02x}{:02x}{:02x}{:02x}'.format(*numbers)

def ip4_hex ( arg ) : numbers = list ( map ( int , arg . split ( '.' ) ) ) return '{:02x}{:02x}{:02x}{:02x}' . format ( * numbers )
convert an ipv4 address to hexadecimal notation .