Page 1 of 1

4. An IP address is composed of a binary code of four bytes (8 bits per byte). Please convert the IP address represented

Posted: Fri Apr 29, 2022 6:37 am
by answerhappygod
4 An Ip Address Is Composed Of A Binary Code Of Four Bytes 8 Bits Per Byte Please Convert The Ip Address Represented 1
4 An Ip Address Is Composed Of A Binary Code Of Four Bytes 8 Bits Per Byte Please Convert The Ip Address Represented 1 (18.13 KiB) Viewed 37 times
4. An IP address is composed of a binary code of four bytes (8 bits per byte). Please convert the IP address represented by the 32-bit binary code to the IP address represented by the decimal format. Please write a program in python to output the lp. If the input number is less than 32 bits or more than 32 bits or there are numbers other than 0 and 1 in the input number, it will output "data error!" Input format Enter a 32-bit binary string in one line Output format output the IP address in decimal format in one line, which consists of 4 decimal numbers (corresponding to 4 8-bit binary numbers respectively), separated by ".". Submit code in python.