Description:
The script calculates the IP class, net mask, network ID, host mask, and host ID correctly for all IP classes (A, B, and C). However, some parts of the output may be confusing for users unfamiliar with how host IDs and masks are derived.
Steps to Reproduce:
Run the script.
Enter any valid IP address (e.g., 123.3.6.5, 172.16.5.10, 192.168.1.5).
Observe the output.
Observed Behavior:
Net Mask, Net ID, Host Mask, and Host ID are calculated correctly.
Example output for 123.3.6.5 (Class A):
Class = A
Net Mask = [255, 0, 0, 0]
Net ID = [123, 0, 0, 0]
Host Mask = [0, 255, 255, 255]
Host ID = [0, 3, 6, 5]
Environment:
Python version: 3.x
Description:
The script calculates the IP class, net mask, network ID, host mask, and host ID correctly for all IP classes (A, B, and C). However, some parts of the output may be confusing for users unfamiliar with how host IDs and masks are derived.
Steps to Reproduce:
Run the script.
Enter any valid IP address (e.g., 123.3.6.5, 172.16.5.10, 192.168.1.5).
Observe the output.
Observed Behavior:
Net Mask, Net ID, Host Mask, and Host ID are calculated correctly.
Example output for 123.3.6.5 (Class A):
Class = A
Net Mask = [255, 0, 0, 0]
Net ID = [123, 0, 0, 0]
Host Mask = [0, 255, 255, 255]
Host ID = [0, 3, 6, 5]
Environment:
Python version: 3.x