Re: [Tutor] How Python handles data (was guess-my-number programme)

2011-09-27 Thread Steven D'Aprano
Wayne Werner wrote: When you do something like this in C: int x = 0; int y = 0; What you have actually done behind the scenes is allocated two bytes of memory(IIRC that's in the C spec, but I'm not 100% sure that it's guaranteed to be two bytes). Perhaps they are near each other, say at addres

[Tutor] How Python handles data (was guess-my-number programme)

2011-09-27 Thread Wayne Werner
On Sat, Sep 24, 2011 at 2:58 AM, Kĩnũthia Mũchane < kinuthia.much...@gmail.com> wrote: > ** > On 09/23/2011 11:28 PM, Wayne Werner wrote: > > > >>> tries = 1 > >>> tries > 1 > > The variable 'tries' now contains the value 1 (In Python this is not > technically true, but it's useful to describe