Re: Core Python Programming . . .

2008-01-23 Thread FireNWater
On Jan 22, 5:00 pm, wesley chun <[EMAIL PROTECTED]> 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

Re: Core Python Programming . . .

2008-01-22 Thread wesley chun
> > 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 th

Re: Core Python Programming . . .

2008-01-20 Thread Jorgen Grahn
On Sat, 19 Jan 2008 08:57:24 -0500, Yu-Xi Lim <[EMAIL PROTECTED]> wrote: > FireNWater wrote: > >> 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? > > Yes, it somewhat archaic though. It's more precise than byte, like you

Re: Core Python Programming . . .

2008-01-19 Thread Yu-Xi Lim
FireNWater wrote: > 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? Yes, it somewhat archaic though. It's used when "byte" is ambiguous. On some ancient (by computing standards) computers, the size of a byte may be as

Re: Core Python Programming . . .

2008-01-19 Thread FireNWater
On Jan 18, 6:00 pm, Yu-Xi Lim <[EMAIL PROTECTED]> 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

Re: Core Python Programming . . .

2008-01-18 Thread Yu-Xi Lim
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 3

Re: Core Python Programming . . .

2008-01-18 Thread Mike Driscoll
On Jan 18, 1:55 pm, Paul Rubin wrote: > FireNWater <[EMAIL PROTECTED]> writes: > > 1) convert a 4-digit Integer (WXYZ) to an IP address (WWW.XXX.YYY.ZZZ) > > > or > > > 2) convert an 8-digit Integer (WWWXXXYYYZZZ) to (WWW.XXX.YYY.ZZZ) > > > Thanks for anyone with the clue

Re: Core Python Programming . . .

2008-01-18 Thread Paul Rubin
FireNWater <[EMAIL PROTECTED]> writes: > 1) convert a 4-digit Integer (WXYZ) to an IP address (WWW.XXX.YYY.ZZZ) > > or > > 2) convert an 8-digit Integer (WWWXXXYYYZZZ) to (WWW.XXX.YYY.ZZZ) > > Thanks for anyone with the clue!!! Without being able to see the exercise I suspect it's turn a 4-byte