Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-06-02 Thread Luke Paireepinart
Adam Urbas wrote: > Sorry about all that trouble for you Alan, after I posted that, I > reformatted my code a bit and updated it to do the defining and then > the calling, like you said. The only problem I had, and I was > probably doing something wrong, was that I would do: > > choice() > if choi

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-06-01 Thread Adam Urbas
Sorry about all that trouble for you Alan, after I posted that, I reformatted my code a bit and updated it to do the defining and then the calling, like you said. The only problem I had, and I was probably doing something wrong, was that I would do: choice() if choice in["1","circle"]: circle

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-05-30 Thread Alan Gauld
Hi Adam > flaw in my loop. It is not infinite. In fact you don't have a loop, your program is really just a simple sequence. #Welcome screen: def welcome(): print "Welcome to the Area Calculation Program." print welcome() AG:Since you only call this once there is no point in putting A

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-05-30 Thread Adam Urbas
Once again this is my latest version. I know of several problems, such as the previously posted infinite looping problem. Also, if sends you to the wrong place sometimes. Ex: a second ago, I pressed 4 to exit (which does not work either) and it took me to triangle. I'm not sure how to end the

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-05-30 Thread Adam Urbas
Ok I forgot to put some things on the previous one. I discovered a flaw in my loop. It is not infinite. If you select circle, radius, enter the radius, circle, radius, enter the radius, then the program stops. I want it to be able to keep going as many times as needed, infinitely. So that the

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-05-30 Thread Adam Urbas
I think I may have figured it out. I just switched some things around. On 5/30/07, Adam Urbas <[EMAIL PROTECTED]> wrote: I can't seem to get the type with the parameters to work. I can get def answer(): to work, but not def answer(my_first_parameter,my_second_parameter):. I'm not too concerne

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-05-30 Thread Adam Urbas
I can't seem to get the type with the parameters to work. I can get def answer(): to work, but not def answer(my_first_parameter,my_second_parameter):. I'm not too concerned, as I haven't yet needed to use that. But, when I use the parameter type, it runs without error messages, but doesn't disp

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-05-30 Thread Brian van den Broek
Adam Urbas said unto the world upon 05/30/2007 11:01 AM: > I can't exactly show you the error message anymore, because the program is > now screwed up in so many ways that I can't even get it to do the things it > used to. > > It says things like ERROR: Inconsistent indentation detected! > 1) Your

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-05-30 Thread Adam Urbas
Ahahahahaha... I have figured these out beyond comprehension and power. Wahhaha. It feels good to get something to work correctly. Thanks much Andre. I don't quite understand the putting of things inside the parentheses, but I've discovered that I don't really need to, because def text(): works

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-05-30 Thread Adam Urbas
I can't exactly show you the error message anymore, because the program is now screwed up in so many ways that I can't even get it to do the things it used to. It says things like ERROR: Inconsistent indentation detected! 1) Your indentation is outright incorrect (easy to fix), OR 2) Your indenta

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-05-30 Thread Andre Engels
2007/5/30, Brian van den Broek <[EMAIL PROTECTED]>: > Another fwd, folks. > > Brian vdB > > Original Message > Subject: Re: [Tutor] trouble with "if" > Date: Tue, 29 May 2007 23:28:46 -0500 > From: Adam Urbas <[EMAIL PROTECTED]> > To: Brian van den Broek <[EMAIL PROTECTED]> > Refe

[Tutor] [Fwd: Re: trouble with "if"]

2007-05-29 Thread Brian van den Broek
Another fwd, folks. Brian vdB Original Message Subject: Re: [Tutor] trouble with "if" Date: Tue, 29 May 2007 23:28:46 -0500 From: Adam Urbas <[EMAIL PROTECTED]> To: Brian van den Broek <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTEC

[Tutor] [Fwd: Re: trouble with "if"]

2007-05-29 Thread Brian van den Broek
Forwarding to the list as I'm out of time on this one for now. Adam, it is better to reply to all so that messages are sent to the list and not just the original sender. That way, more people can help, more people can learn, and you don't have to wait on one person to find the time. Anticipati