Re: Help with guessing game :D

2013-10-29 Thread Dave Angel
On 29/10/2013 15:15, Robert Gonda wrote: (once again deleting all the double-spaced Googlegroups nonsense) > && >>Hi dave, yes you was right. I had python 2.7 but I upgraded to python 3 now, thanks for help :) by the way, is this showing normally? No, you're still adding a ">" character before t

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On Tuesday, October 29, 2013 2:21:08 PM UTC-6, Robert Gonda wrote: > Is it possible to further more specify it? H only shows if the > guess is at most 3 higher then the answer?. But L is only given > if the guess is at most 3 lower the answer? I'm starting to > like this ;D To do that, you'll need

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 19:55:13 UTC, ru...@yahoo.com wrote: > On Tuesday, October 29, 2013 1:03:00 PM UTC-6, Robert Gonda wrote: > > > never mind you was right, for some reason I had version 2.7 :/ , > > > and btw I was wondering, is it also possible to make it more > > > complex? such as

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 19:55:13 UTC, ru...@yahoo.com wrote: > On Tuesday, October 29, 2013 1:03:00 PM UTC-6, Robert Gonda wrote: > > > never mind you was right, for some reason I had version 2.7 :/ , > > > and btw I was wondering, is it also possible to make it more > > > complex? such as

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On Tuesday, October 29, 2013 1:03:00 PM UTC-6, Robert Gonda wrote: > never mind you was right, for some reason I had version 2.7 :/ , > and btw I was wondering, is it also possible to make it more > complex? such as if the computer will again show “Y” if a digit > is correct but if a digit is incor

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 19:09:01 UTC, Dave Angel wrote: > On 29/10/2013 14:05, Robert Gonda wrote: > > > > > > & >> Back to question, name is also not working, I currently have > > python 3.3.2 and the only to get that work is the write raw_input, I > > have no idea why, did i do soemt

Re: Help with guessing game :D

2013-10-29 Thread Dave Angel
On 29/10/2013 14:05, Robert Gonda wrote: & >> Back to question, name is also not working, I currently have python 3.3.2 and the only to get that work is the write raw_input, I have no idea why, did i do soemthing wrong? Why did you add those two >> symbols in front of your new text? Each such

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 18:35:56 UTC, Robert Gonda wrote: > On Tuesday, 29 October 2013 18:27:41 UTC, ru...@yahoo.com wrote: > > > On Tuesday, October 29, 2013 11:45:56 AM UTC-6, Robert Gonda wrote: > > > > > > > Thank you very much for your reply, however it gives me an error, > > > >

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 18:27:41 UTC, ru...@yahoo.com wrote: > On Tuesday, October 29, 2013 11:45:56 AM UTC-6, Robert Gonda wrote: > > > Thank you very much for your reply, however it gives me an error, > > > something about the "end", do you know whats wrong with it? > > > (Still not sure

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 11:56:28 PM UTC+5:30, ru...@yahoo.com wrote: > On Tuesday, October 29, 2013 11:52:15 AM UTC-6, rusi wrote: > > On Tuesday, October 29, 2013 10:54:08 PM UTC+5:30, ru...@yahoo.com wrote: > > > Also, what Mark and Rusi were trying to say (not very clearly) > > > is that wh

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On Tuesday, October 29, 2013 11:52:15 AM UTC-6, rusi wrote: > On Tuesday, October 29, 2013 10:54:08 PM UTC+5:30, ru...@yahoo.com wrote: > > Also, what Mark and Rusi were trying to say (not very clearly) > > is that when you post from Google Groups, Google Groups insert > > a lot of empty lines in

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On Tuesday, October 29, 2013 11:45:56 AM UTC-6, Robert Gonda wrote: > Thank you very much for your reply, however it gives me an error, > something about the "end", do you know whats wrong with it? > (Still not sure if im posting this right so sorry) "...an error, something about the 'end'" is no

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 11:45:39 UTC, Robert Gonda wrote: > Hey guys, so I figured I will give python a shot. I got to exercise that has > asked me to create a number guessing game which weren't a problem, > > guessesTaken = 0 #This is a "Guesses taken counter" > > print("Hello, what's you

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 17:52:15 UTC, rusi wrote: > On Tuesday, October 29, 2013 10:54:08 PM UTC+5:30, ru...@yahoo.com wrote: > > > Also, what Mark and Rusi were trying to say (not very clearly) > > > is that when you post from Google Groups, Google Groups insert > > > a lot of empty lines

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 10:54:08 PM UTC+5:30, ru...@yahoo.com wrote: > Also, what Mark and Rusi were trying to say (not very clearly) > is that when you post from Google Groups, Google Groups insert > a lot of empty lines in the ">" the at the top of the message. So from the most recent post

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, October 29, 2013 5:24:08 PM UTC, ru...@yahoo.com wrote: > On 10/29/2013 05:45 AM, Robert Gonda wrote: > > > Hey guys, so I figured I will give python a shot. I got to exercise that > > has asked me to create a number guessing game which weren't a problem, > > > guessesTaken = 0 #Thi

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 10:52:04 PM UTC+5:30, Neil Cerutti wrote: > I just want to add that this programming exercise, while pretty > common, stinks. > > A new programmer shouldn't be embroiled in the morass of > interactive programming. Cheers to that! If the 'print' statement were called a

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On 10/29/2013 05:45 AM, Robert Gonda wrote: > Hey guys, so I figured I will give python a shot. I got to exercise that has > asked me to create a number guessing game which weren't a problem, > guessesTaken = 0 #This is a "Guesses taken counter" > print("Hello, what's your name?") #Asking the use

Re: Help with guessing game :D

2013-10-29 Thread Neil Cerutti
On 2013-10-29, Alister wrote: > set the number to be guessed > get the user input > step through each digit in the input > compare to the co-responding digit in the number to be guessed > generate the required output > > actually let me just expand on my earlier teaser code > > does this switch on

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 10:35:52 PM UTC+5:30, Robert Gonda wrote: > > Is this better then? By a bit. For most here not enough Open the 'show quoted text' in your last post it shows like so [Ive replaced '>' by '&' so GG will show it & On Tuesday, October 29, 2013 10:01:38 PM UTC+5:30, Robert

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 16:40:01 UTC, rusi wrote: > On Tuesday, October 29, 2013 10:01:38 PM UTC+5:30, Robert Gonda wrote: > > > > > > > I honestly don't get it? this any better? ;D > > > > In google groups you will see a small 'show quoted text' > > Click it you will see what a cascadi

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 10:01:38 PM UTC+5:30, Robert Gonda wrote: > > > I honestly don't get it? this any better? ;D In google groups you will see a small 'show quoted text' Click it you will see what a cascading avalanche of mess is produced. Yes GG is stupid, not you. But if you use it (

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 16:24:57 UTC, rusi wrote: > On Tuesday, October 29, 2013 8:10:20 PM UTC+5:30, Robert Gonda wrote: > > > > > Unfortunately I'm not that sort of person, the way my brain learns is by > > > experimenting, but first I need to know exactly what to write. Then I will >

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 8:10:20 PM UTC+5:30, Robert Gonda wrote: > Unfortunately I'm not that sort of person, the way my brain learns is by > experimenting, but first I need to know exactly what to write. Then I will > play > around with it and customize it to my needs, sorry to be such a

Re: Help with guessing game :D

2013-10-29 Thread Alister
On Tue, 29 Oct 2013 07:40:20 -0700, Robert Gonda wrote: >> >> >> >> remember that strings are a sequence. >> >> they can be used as iterators & sliced in the same way as lists & >> >> >> tuples. >> >> >> >> Let a fool hold his tongue and he will pass for a sage. >> >> >> >> >> >> --

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 14:25:10 UTC, Alister wrote: > On Tue, 29 Oct 2013 06:10:30 -0700, Robert Gonda wrote: > > > > > On Tuesday, 29 October 2013 13:07:08 UTC, Alister wrote: > > >> On Tue, 29 Oct 2013 06:03:55 -0700, Robert Gonda wrote: > > >> > > >> > > >> > > >> > On Tuesday,

Re: Help with guessing game :D

2013-10-29 Thread Alister
On Tue, 29 Oct 2013 06:10:30 -0700, Robert Gonda wrote: > On Tuesday, 29 October 2013 13:07:08 UTC, Alister wrote: >> On Tue, 29 Oct 2013 06:03:55 -0700, Robert Gonda wrote: >> >> >> >> > On Tuesday, 29 October 2013 12:58:09 UTC, Alister wrote: >> >> >> On Tue, 29 Oct 2013 05:05:19 -0700, Ro

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 13:44:45 UTC, Mark Lawrence wrote: > On 29/10/2013 11:45, Robert Gonda wrote: > > > > As you've already received and responded to advice please could you > > read, digest and action this https://wiki.python.org/moin/GoogleGroupsPython > > > > TIA. > > > > --

Re: Help with guessing game :D

2013-10-29 Thread Mark Lawrence
On 29/10/2013 11:45, Robert Gonda wrote: As you've already received and responded to advice please could you read, digest and action this https://wiki.python.org/moin/GoogleGroupsPython TIA. -- Python is the second best programming language in the world. But the best has yet to be invented.

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 13:07:08 UTC, Alister wrote: > On Tue, 29 Oct 2013 06:03:55 -0700, Robert Gonda wrote: > > > > > On Tuesday, 29 October 2013 12:58:09 UTC, Alister wrote: > > >> On Tue, 29 Oct 2013 05:05:19 -0700, Robert Gonda wrote: > > >> > > >> > > >> >> > > >> > > >> >

Re: Help with guessing game :D

2013-10-29 Thread Alister
On Tue, 29 Oct 2013 06:03:55 -0700, Robert Gonda wrote: > On Tuesday, 29 October 2013 12:58:09 UTC, Alister wrote: >> On Tue, 29 Oct 2013 05:05:19 -0700, Robert Gonda wrote: >> >> >> >> >> >> >> > >> >> > converting input()'s result to an integer, both of which suggest >> >> >> >> >> >>

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 12:58:09 UTC, Alister wrote: > On Tue, 29 Oct 2013 05:05:19 -0700, Robert Gonda wrote: > > >> > > >> > > > >> > converting input()'s result to an integer, both of which suggest > > >> > > >> > > > > if you need to be checking individual digits you are probab

Re: Help with guessing game :D

2013-10-29 Thread Alister
On Tue, 29 Oct 2013 05:05:19 -0700, Robert Gonda wrote: >> >> > >> > converting input()'s result to an integer, both of which suggest >> >> if you need to be checking individual digits you are probably best keeping the input & number to be checked as strings. it would then be a trivial task

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 11:54:49 UTC, Robert Gonda wrote: > On Tuesday, 29 October 2013 11:53:55 UTC, Chris Angelico wrote: > > > On Tue, Oct 29, 2013 at 10:45 PM, Robert Gonda > > > > > > wrote: > > > > > > > N = raw_input() #What the user's name is > > > > > > > print(N + ", I'm

Re: Help with guessing game :D

2013-10-29 Thread Robert Gonda
On Tuesday, 29 October 2013 11:53:55 UTC, Chris Angelico wrote: > On Tue, Oct 29, 2013 at 10:45 PM, Robert Gonda > > wrote: > > > N = raw_input() #What the user's name is > > > print(N + ", I'm thinking of a number between 1-1000") #Not needed but > > tells the user their name and tells them

Re: Help with guessing game :D

2013-10-29 Thread Chris Angelico
On Tue, Oct 29, 2013 at 10:45 PM, Robert Gonda wrote: > N = raw_input() #What the user's name is > print(N + ", I'm thinking of a number between 1-1000") #Not needed but tells > the user their name and tells them that it's thinking of a number betweeen 1 > to 1000 > guess = input() > gue

Help with guessing game :D

2013-10-29 Thread Robert Gonda
Hey guys, so I figured I will give python a shot. I got to exercise that has asked me to create a number guessing game which weren't a problem, guessesTaken = 0 #This is a "Guesses taken counter" print("Hello, what's your name?") #Asking the user to input their name N = raw_input() #What the user