Re: Some python newb help please?

2013-11-12 Thread Chris Angelico
On Wed, Nov 13, 2013 at 10:04 AM, wrote: > Thanks a lot! I'll try this out! > Sorry to everyone else whose eyes I made bleed. I've never used a newsgroup > before...still not really sure what they are. Found this through a google > search :\ There's an easy fix. Go to this page: https://mail.

Re: Some python newb help please?

2013-11-12 Thread Denis McMahon
On Tue, 12 Nov 2013 14:14:42 -0800, lrwarren94 wrote: > http://pastebin.com/6QZTvx6Z Work through your code very very carefully. You're doing something in each if branch that you probably only want to do once in each execution of the while loop. If you can't figure it out, I'll post a correcte

Re: Some python newb help please?

2013-11-12 Thread lrwarren94
On Tuesday, November 12, 2013 4:56:35 PM UTC-6, MRAB wrote: > On 12/11/2013 22:27, l...@gmail.com wrote:> On Tuesday, November > > 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote: > > >> On 12/11/2013 22:14, lr@gmail.com wrote: > > >> > > >> > So I'm trying to write a program for a probl

Re: Some python newb help please?

2013-11-12 Thread Chris Angelico
On Wed, Nov 13, 2013 at 9:27 AM, wrote: > I'm not quite sure what you mean by that. it was on that pastebin link. I'll > post it again here though. it's no longer than half a page. Inline means what you did in this post. Out-of-line means providing us with a link to where the code is. This for

Re: Some python newb help please?

2013-11-12 Thread MRAB
On 12/11/2013 22:27, lrwarre...@gmail.com wrote:> On Tuesday, November 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote: >> On 12/11/2013 22:14, lr@gmail.com wrote: >> >> > So I'm trying to write a program for a problem in class, and something strange is happening that I can't figure out why i

Re: Some python newb help please?

2013-11-12 Thread Tim Chase
On 2013-11-12 14:27, lrwarre...@gmail.com wrote: > if int(raw_input()) == 1: > print "Moving north" > y = y + 1 > elif int(raw_input()) == 2: > print "Moving east" > x = x + 1 > elif int(raw_input()) == 3: > print "Moving south

Re: Some python newb help please?

2013-11-12 Thread Mark Lawrence
First thing would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython so we don't have to read double spaced google crap, thanks. On 12/11/2013 22:27, lrwarre...@gmail.com wrote: On Tuesday, November 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote: On 12/11/2013 22:

Re: Some python newb help please?

2013-11-12 Thread John Strick
Welcome to the world of Python programming! I'm glad you're learning this great language. As to your bug, think about this: in each if or elif statement, you're reading the user input again, so if user input is NOT equal to 1 in the first place, it reads input again. Try to step through your c

Re: Some python newb help please?

2013-11-12 Thread lrwarren94
On Tuesday, November 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote: > On 12/11/2013 22:14, lr@gmail.com wrote: > > > So I'm trying to write a program for a problem in class, and something > > strange is happening that I can't figure out why is happening. I was > > wondering if you guys coul

Re: Some python newb help please?

2013-11-12 Thread Mark Lawrence
On 12/11/2013 22:14, lrwarre...@gmail.com wrote: So I'm trying to write a program for a problem in class, and something strange is happening that I can't figure out why is happening. I was wondering if you guys could help me fix it? http://pastebin.com/6QZTvx6Z Basically, 1 and 2 work just fi