calculate the address of the subnet in Python - Stack Overflow

calculate the address of the subnet in Python - Stack Overflow