Answered step by step
Verified Expert Solution
Question
1 Approved Answer
q 12) Trace this code 1mport sooket print (sooket.gethostbyname ('127,0.0.1')) Answer. q13) what will this code print? import socket class MyNet: @staticmethod def conn(z) :
q 12) Trace this code 1mport sooket print (sooket.gethostbyname ('127,0.0.1')) Answer. q13) what will this code print? import socket class MyNet: @staticmethod def conn(z) : s=socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM) message" "xx" s.sendto(message.encode(), z) d,s=s.recvirom(1024) print(s[1]) return d class A(MyNet): pass b=A print(b.conn(('127.0.0.1',20011)))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started