Re: [Tutor] Getting confusing NameError

2010-08-18 Thread Wayne Werner
On Wed, Aug 18, 2010 at 3:48 AM, shane brennan wrote: > > > again thanks for everything, and hopefully ill be around here for a long > time and once i get a more experienced i can contribute back > You don't need to be /too/ experienced. Contributing here is actually how I learned Python as much

Re: [Tutor] Getting confusing NameError

2010-08-18 Thread shane brennan
Hi all Thank you for all the help. I had upgraded the machine to v3 but for some reason 2 hadnt removed properly, once i did some digigng i found the redundant entries in the registry and the libraries that didnt remove and cleared them up . script is running fine now:) thanks for all the help Es

Re: [Tutor] Getting confusing NameError

2010-08-18 Thread Alan Gauld
"shane brennan" wrote In one of the code samples he supplies while doing loops ( namely if and else loops) im getting a NameError i dont understand and cannot find any help anywhere about it. Evert has already pointed out that the code is for Python v3 and it looks like you are using Python

Re: [Tutor] Getting confusing NameError

2010-08-18 Thread Christian Witts
On 18/08/2010 09:15, shane brennan wrote: Hi Tutors This is my first mail to this list so firstly thank you for reading and apologies in advance for any noob mistakes i may have inadvertantly made:). Ive only started learning python as my first programming language and its all going well so fa

Re: [Tutor] Getting confusing NameError

2010-08-18 Thread Nitin Das
use raw_input instead of input . as using input is unsafe as it evaluates your input as python command. for e,g. x = input("enter command") and u entered "1 + 2" as input., then it will evaluate 1+2 = 3 = x. -nitin On Wed, Aug 18, 2010 at 12:45 PM, shane brennan wrote: > Hi Tutors > > This is m

Re: [Tutor] Getting confusing NameError

2010-08-18 Thread Evert Rol
> This is my first mail to this list so firstly thank you for reading and > apologies in advance for any noob mistakes i may have inadvertantly made:). > Ive only started learning python as my first programming language and its all > going well so far, working my way through a couple of books on

[Tutor] Getting confusing NameError

2010-08-18 Thread shane brennan
Hi Tutors This is my first mail to this list so firstly thank you for reading and apologies in advance for any noob mistakes i may have inadvertantly made:). Ive only started learning python as my first programming language and its all going well so far, working my way through a couple of books on