(self)
return int(self.broadcast_address) - int(self.network_address) + 1
Number of hosts in the current subnet.
Number of hosts in the current subnet.
Number of hosts in the current subnet .
def num_addresses(self):
        """Number of hosts in the current subnet."""
        return int(self.broadcast_address) - int(self.network_address) + 1
def num_addresses ( self ) : return int ( self . broadcast_address ) - int ( self . network_address ) + 1