Core Python Programming . . .

FireNWater khoard at
Sat Jan 19 14:48:23 CET 2008

On Jan 18, 6:00 pm, Yu-Xi Lim <y... at> wrote:
> 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.

I guess I'm not fully up to speed on what constitutes an IP address.
Does the term 'octet' refer to an 8-bit (xFF) number?

More information about the Python-list mailing list