Re: Very basic question. How do I start again?

2014-08-22 Thread Tim Roberts
Seymore4Head Seymore4Head@Hotmail.invalid wrote: I want to give the computer 100 tries to guess a random number between 1 and 100 picked by the computer. If it takes more than 7, you're doing it wrong... -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. --

Re: Very basic question. How do I start again?

2014-08-22 Thread Igor Korot
Hi, On Thu, Aug 21, 2014 at 10:56 PM, Tim Roberts t...@probo.com wrote: Seymore4Head Seymore4Head@Hotmail.invalid wrote: I want to give the computer 100 tries to guess a random number between 1 and 100 picked by the computer. If it takes more than 7, you're doing it wrong... I think he

Very basic question. How do I start again?

2014-08-21 Thread Seymore4Head
I want to give the computer 100 tries to guess a random number between 1 and 100 picked by the computer. For the moment I am always using 37 as the random pick. I want to change the pick to pick=random.randrange(1,100). The program works as expected until the computer gets a correct guess. I

Re: Very basic question. How do I start again?

2014-08-21 Thread Ben Finney
Seymore4Head Seymore4Head@Hotmail.invalid writes: The program works as expected until the computer gets a correct guess. I don't know what I should be doing to restart the program when pick=guess. There isn't a “restart the program” code we can give. But I think you need only something rather

Re: Very basic question. How do I start again?

2014-08-21 Thread Chris Angelico
On Fri, Aug 22, 2014 at 11:37 AM, Seymore4Head Seymore4Head@hotmail.invalid wrote: I want to give the computer 100 tries to guess a random number between 1 and 100 picked by the computer. Suggestion: Be up-front about this being a homework assignment. Most of us can tell anyway, and it's more

Re: Very basic question. How do I start again?

2014-08-21 Thread Seymore4Head
On Fri, 22 Aug 2014 11:55:58 +1000, Ben Finney ben+pyt...@benfinney.id.au wrote: Seymore4Head Seymore4Head@Hotmail.invalid writes: The program works as expected until the computer gets a correct guess. I don't know what I should be doing to restart the program when pick=guess. There isn't a

Re: Very basic question. How do I start again?

2014-08-21 Thread Chris Angelico
On Fri, Aug 22, 2014 at 12:13 PM, Seymore4Head Seymore4Head@hotmail.invalid wrote: I tried puttingbreak_stmt ::= break at the point where I want to start over:) ,but since there is no start over command, I was happy to end the program. I get invalid syntax so I tried

Re: Very basic question. How do I start again?

2014-08-21 Thread Seymore4Head
On Fri, 22 Aug 2014 11:58:00 +1000, Chris Angelico ros...@gmail.com wrote: On Fri, Aug 22, 2014 at 11:37 AM, Seymore4Head Seymore4Head@hotmail.invalid wrote: I want to give the computer 100 tries to guess a random number between 1 and 100 picked by the computer. Suggestion: Be up-front about

Re: Very basic question. How do I start again?

2014-08-21 Thread Steven D'Aprano
Seymore4Head wrote: I want to give the computer 100 tries to guess a random number between 1 and 100 picked by the computer. For the moment I am always using 37 as the random pick. I want to change the pick to pick=random.randrange(1,100). The program works as expected until the computer

Re: Very basic question. How do I start again?

2014-08-21 Thread Denis McMahon
On Thu, 21 Aug 2014 21:37:22 -0400, Seymore4Head wrote: I want to give the computer 100 tries to guess a random number between 1 and 100 picked by the computer. For the moment I am always using 37 as the random pick. I want to change the pick to pick=random.randrange(1,100). The program