menu_book Course Curriculum (Computer Networking Fundamentals) expand_more
Models & Fundamentals
Ethernet & LAN
IPv4
IPv6
Transport Layer
Core Services
Web & Security Protocols
Subnet calculation
Learn Subnet calculation in Computer Networking Fundamentals with a focused explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Beginner
Advertisement
computer-networking-027.txt
text
from ipaddress import ip_network
net = ip_network("192.168.40.0/27")
print(net.network_address, net.broadcast_address, len(list(net.hosts())))
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content