Re: guessthenumber print games left

2013-04-11 Thread Neil Cerutti
On 2013-04-11, eschneide...@comcast.net wrote: > If you get the time, please post an example, because I don't > understand. Maybe it would help to think about contraints. Write them next to your variable names, and then check, at every point in your program, if the contraint is still true. Here'

Re: guessthenumber print games left

2013-04-11 Thread Chris Angelico
On Thu, Apr 11, 2013 at 5:15 PM, wrote: > If you get the time, please post an example, because I don't understand. (It helps to include some quoted text to provide context to your post.) Imagine you had a program that just showed the number of games left, nothing else. Write me out what you wou

Re: guessthenumber print games left

2013-04-11 Thread eschneider92
If you get the time, please post an example, because I don't understand. -- http://mail.python.org/mailman/listinfo/python-list

Re: guessthenumber print games left

2013-04-10 Thread Chris Angelico
On Thu, Apr 11, 2013 at 4:15 PM, wrote: > The 2 makes the game play twice instead of 3 times, right? I've tried it with > the 1, but but I'm still having trouble. Again, to be exact, I want to > somehow make it count down from 2 (the number of games)and print. If that's > what this does, is it

Re: guessthenumber print games left

2013-04-10 Thread eschneider92
The 2 makes the game play twice instead of 3 times, right? I've tried it with the 1, but but I'm still having trouble. Again, to be exact, I want to somehow make it count down from 2 (the number of games)and print. If that's what this does, is it possible to insert it into my original main progr

Re: guessthenumber print games left

2013-04-10 Thread Chris Angelico
On Thu, Apr 11, 2013 at 3:56 PM, wrote: > How do I make it say that I have one game left? I'm having trouble fitting it > into my main code. Thanks a lot for the help btw. The main confusion seems to be over whether to add one or two. If you add one, it'll tell you you have just one game left (

Re: guessthenumber print games left

2013-04-10 Thread eschneider92
How do I make it say that I have one game left? I'm having trouble fitting it into my main code. Thanks a lot for the help btw. -- http://mail.python.org/mailman/listinfo/python-list

Re: guessthenumber print games left

2013-04-10 Thread Chris Angelico
On Thu, Apr 11, 2013 at 3:41 PM, wrote: > (Didn't mean to post the last bit.) Is this possibly what you meant? If it is > I still can't figure out how to apply it to the guessthenumber program. > numberofgames=1 > while numberofgames<4: > numberofgames=numberofgames+2 > print (4-numberof

Re: guessthenumber print games left

2013-04-10 Thread eschneider92
(Didn't mean to post the last bit.) Is this possibly what you meant? If it is I still can't figure out how to apply it to the guessthenumber program. numberofgames=1 while numberofgames<4: numberofgames=numberofgames+2 print (4-numberofgames) if numberofguesses>3: print(numb

Re: guessthenumber print games left

2013-04-10 Thread eschneider92
On Wednesday, April 10, 2013 5:39:23 AM UTC-4, eschne...@comcast.net wrote: > Could anyone tell me how to make the program tell me how many games are left > before the first game and second game? For example, after one game of guess > the number, I want it to tell me that i get one more game. P.S

Re: guessthenumber print games left

2013-04-10 Thread Chris Angelico
On Thu, Apr 11, 2013 at 7:01 AM, wrote: > On Wednesday, April 10, 2013 5:44:20 AM UTC-4, Chris Angelico wrote: >> On Wed, Apr 10, 2013 at 7:39 PM, wrote: >> >> You have here a counter, but it's counting up. To figure out how many >> games are left, just subtract the numberofgames from the total

Re: guessthenumber print games left

2013-04-10 Thread eschneider92
On Wednesday, April 10, 2013 5:44:20 AM UTC-4, Chris Angelico wrote: > On Wed, Apr 10, 2013 at 7:39 PM, wrote: > > > Could anyone tell me how to make the program tell me how many games are > > left before the first game and second game? For example, after one game of > > guess the number, I wa

Re: guessthenumber print games left

2013-04-10 Thread Chris Angelico
On Wed, Apr 10, 2013 at 7:39 PM, wrote: > Could anyone tell me how to make the program tell me how many games are left > before the first game and second game? For example, after one game of guess > the number, I want it to tell me that i get one more game. P.S. I'm totally > new to python (ob

guessthenumber print games left

2013-04-10 Thread eschneider92
Could anyone tell me how to make the program tell me how many games are left before the first game and second game? For example, after one game of guess the number, I want it to tell me that i get one more game. P.S. I'm totally new to python (obviously), and I just added numberofgames variable