#! /bin/python def ip2decimalism(ip): dec_value = 0 v_list = ip.split('.') v_list.reverse() t = 1 for v in v_list: dec_value += int(v) * t t = t * (2 ** 8) return dec_value def decimalism2ip(dec_value): ip = '' t = 2 ** 8 for _ in range(4): v = dec_v…