Core Python Programming . . .

2008-01-18 Thread FireNWater
I'm working my way thru the book "Core Python Programming" 2d Edition - Wesley Chun. . . Trying to figure out what he's looking for on Page 248, Exercise 6-11 (a). Is it supposed to be: 1) convert a 4-digit Integer (WXYZ) to an IP address (WWW.XXX.YYY.ZZZ) or 2) convert an 8-digit Integer (WWW

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-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

Dictionary Keys question

2008-01-30 Thread FireNWater
I'm curious why the different outputs of this code. If I make the dictionary with letters as the keys, they are not listed in the dictionary in alphabetical order, but if I use the integers then the keys are in numerical order. I know that the order of the keys is not important in a dictionary, b

Re: Dictionary Keys question

2008-01-30 Thread FireNWater
On Jan 30, 3:09 pm, Berteun Damman <[EMAIL PROTECTED]> wrote: > On Wed, 30 Jan 2008 14:47:36 -0800 (PST), FireNWater <[EMAIL PROTECTED]> > wrote: > > I'm curious why the different outputs of this code. If I make the > > dictionary with letters as t

Re: Dictionary Keys question

2008-01-31 Thread FireNWater
On Jan 31, 4:39 am, Dustan <[EMAIL PROTECTED]> wrote: > On Jan 30, 7:02 pm, FireNWater <[EMAIL PROTECTED]> wrote: > > > Thank you for the explanation. . . I think I now have a (foggy) > > understanding of hash tables. It seems to be a way to create order > >