> -----Original Message----- > Subject: Re: [Tutor] while Loop > > Oops, didn't notice the uppercase U, thanks Luke. > > ----- Original Message ----- > Subject: Re: [Tutor] while Loop > > > >> define it with usedPocketsOne = 192000? > > no, I said UsedPocketsOne was not defined. Note the > different starting > > letter. > > Python is case senstitive, meaning usedPocketsOne is not > the same as > > UsedPocketsOne. > > So yes, you defined usedPocketsOne with the assignment to > 192000, but > > you did not define UsedPocketsOne. > >
I've been out of the office for the last week, so I'm catching up. You might use something like PyChecker, PyLint, or PyFlakes. Those utilities would catch errors like this. I have a hotkey in VIM that kicks off PyFlakes on the current buffer. Also, I'm not 100% sure, but I think Komodo IDE would catch this as well. Mike _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor