Mike Driscoll wrote: > > 6-11 Conversion. > (a) Create a program that will convert from an integer to an > Internet Protocol (IP) address in the four-octet format of WWW.XXX.YYY.ZZZ > (b) Update your program to be able to do the vice verse of the > above.
I think it's is asking to convert a 32-bit int to the dotted form. It's a little known fact, but IP addresses are valid in non-dotted long-int form. Spammers commonly use this trick to disguise their IP addresses in emails from scanners. -- http://mail.python.org/mailman/listinfo/python-list