> >>>> host = n & mask >>>> net = n - host >>>> print "net: %X host: %X" % (net, host) >net: C0000000 host: A80201 > Is there a way back to present the calculated results in a doted decimal notation? Jeroen