Re: different errors, return outside function and others

2009-02-23 Thread Tony
Thank You, I now understand what i need to do now, and again Thanks On Mon, Feb 23, 2009 at 1:57 AM, Gabriel Genellina wrote: > En Mon, 23 Feb 2009 07:07:57 -0200, Tony > escribió: > > ok thank you for that input, this is my first class in programming and its >> the only one the school offers. i

Re: different errors, return outside function and others

2009-02-23 Thread Terry Reedy
Tony wrote: The full error message says "There's an error in your program: *** 'return' outside function (final(2).py, line 114) Ah, you left the quotes off before, and you still omitted the error class (SyntaxError, see below). When you are puzzled by an error, try to reduce the executed co

Re: different errors, return outside function and others

2009-02-23 Thread Gabriel Genellina
En Mon, 23 Feb 2009 07:07:57 -0200, Tony escribió: ok thank you for that input, this is my first class in programming and its the only one the school offers. im pretty sure those are supposed to be modules that im writting. would it make a difference if those were modules and not functio

Re: different errors, return outside function and others

2009-02-23 Thread Tony
ok thank you for that input, this is my first class in programming and its the only one the school offers. im pretty sure those are supposed to be modules that im writting. would it make a difference if those were modules and not functions? kinda stupid question there but im trying to learn as much

Re: different errors, return outside function and others

2009-02-23 Thread Gabriel Genellina
En Mon, 23 Feb 2009 04:51:39 -0200, Tony escribió: Hi, I am trying to write a small program for my final for school, everytime i run my program it gives me a return outside function error (after i fixed all the indentation errors it throws at me), i am not very good at programing with python

Re: different errors, return outside function and others

2009-02-23 Thread Chris Rebert
Ok, that's not a standard Python error report (I'm guessing you're using an IDE of some sort). Also, something's not right because your excerpt doesn't match the source you posted. In your previous post, the 'while' line in question was given as: while introselection < 1 or introselection > 2 Not

Re: different errors, return outside function and others

2009-02-23 Thread Tony
The full error message says "There's an error in your program: *** 'return' outside function (final(2).py, line 114) which is were this return statement is.. while introselection < 1 or introselection > 2: print 'That area is unavaible please buy the expansion haha' return introse

Re: different errors, return outside function and others

2009-02-22 Thread Chris Rebert
On Sun, Feb 22, 2009 at 10:51 PM, Tony wrote: > Hi, > I am trying to write a small program for my final for school, everytime i > run my program it gives me a return outside function error (after i fixed > all the indentation errors it throws at me), i am not very good at > programing with python

different errors, return outside function and others

2009-02-22 Thread Tony
Hi, I am trying to write a small program for my final for school, everytime i run my program it gives me a return outside function error (after i fixed all the indentation errors it throws at me), i am not very good at programing with python atm, so any help would be appreiciated. and if im missing