a_ip:10.10.15.100b_ip:10.10.15.101c_ip:10.10.10.100netmask:255.255.255.0 def numtobinary(num): binary = '' a = int(num) while 1: if a == 0 or a == 1: binary = '%s%s' % (str(a), binary) break num = a % 2 binary = '%s%s' % (str(num), binary) a = a / 2…
def common_data(list1, list2): result = False for x in list1: for y in list2: if x == y: result = True return result print(common_data([,,,,], [,,,,])) print(common_data([,,,,], [,,,]))…