Re: New to programming question

2005-04-01 Thread Bengt Richter
On Fri, 01 Apr 2005 07:46:41 GMT, Joal Heagney [EMAIL PROTECTED] wrote: Oh goddammmni. I seem to be doing this a lot today. Look below for the extra addition to the code I posted. Joal Heagney wrote: Here's my contribution anycase: count = 0 # Get first input name = raw_input(Guess

Re: New to programming question

2005-04-01 Thread Joal Heagney
Bengt Richter wrote: On Fri, 01 Apr 2005 07:46:41 GMT, Joal Heagney [EMAIL PROTECTED] wrote: Oh goddammmni. I seem to be doing this a lot today. Look below for the extra addition to the code I posted. Joal Heagney wrote: Here's my contribution anycase: count = 0 # Get first input name =

Re: New to programming question

2005-04-01 Thread Steve Holden
Joal Heagney wrote: Bengt Richter wrote: On Fri, 01 Apr 2005 07:46:41 GMT, Joal Heagney [EMAIL PROTECTED] wrote: Oh goddammmni. I seem to be doing this a lot today. Look below for the extra addition to the code I posted. Joal Heagney wrote: Here's my contribution anycase: count = 0 # Get

Re: New to programming question

2005-04-01 Thread Ben
Thanks for your help. It is much appreciated. -- http://mail.python.org/mailman/listinfo/python-list

Re: New to programming question

2005-04-01 Thread Ben
Thanks for your input. -- http://mail.python.org/mailman/listinfo/python-list

Re: New to programming question

2005-04-01 Thread Ben
Thanks for your reply. -- http://mail.python.org/mailman/listinfo/python-list

Re: New to programming question

2005-04-01 Thread Joal Heagney
Steve Holden wrote: Joal Heagney wrote: Bengt Richter wrote: On Fri, 01 Apr 2005 07:46:41 GMT, Joal Heagney [EMAIL PROTECTED] wrote: Oh goddammmni. I seem to be doing this a lot today. Look below for the extra addition to the code I posted. Joal Heagney wrote: Here's my contribution

Re: New to programming question

2005-04-01 Thread Joal Heagney
Joal Heagney wrote: Steve Holden wrote: I suppose this would be far too easy to understand, then: pr =['Guess my name', 'Wrong, try again', 'Last chance'] for p in pr: name = raw_input(p+: ) if name == Ben: print You're right! break else: print Loser: no more tries for you regards

New to programming question

2005-03-31 Thread Ben
This is an exercise from the Non-programmers tutorial for Python by Josh Cogliati. The exercise is: Write a program that has a user guess your name, but they only get 3 chances to do so until the program quits. Here is my script: -- count = 0 name = raw_input(Guess my

Re: New to programming question

2005-03-31 Thread Michael Spencer
Ben wrote: This is an exercise from the Non-programmers tutorial for Python by Josh Cogliati. The exercise is: Write a program that has a user guess your name, but they only get 3 chances to do so until the program quits. Here is my script: -- count = 0 name =

Re: New to programming question

2005-03-31 Thread Ron_Adam
On 31 Mar 2005 20:03:00 -0800, Ben [EMAIL PROTECTED] wrote: Could someone tell me what is wrong and give me a better alternative to what I came up with. Seperate you raw input statements from your test. Your elsif is skipping over it. Try using only one raw imput statement right after your

Re: New to programming question

2005-03-31 Thread Joal Heagney
Ben wrote: This is an exercise from the Non-programmers tutorial for Python by Josh Cogliati. The exercise is: Write a program that has a user guess your name, but they only get 3 chances to do so until the program quits. Here is my script: -- count = 0 name =

Re: New to programming question

2005-03-31 Thread Joal Heagney
Oh goddammmni. I seem to be doing this a lot today. Look below for the extra addition to the code I posted. Joal Heagney wrote: Here's my contribution anycase: count = 0 # Get first input name = raw_input(Guess my name: ) # Give the sucker two extra goes while count 2: # Check the value