Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57904 > unrolled thread

Help with guessing game :D

Started byRobert Gonda <robertgonda1994@gmail.com>
First post2013-10-29 04:45 -0700
Last post2013-10-30 01:30 +0000
Articles 17 on this page of 37 — 8 participants

Back to article view | Back to comp.lang.python


Contents

  Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 04:45 -0700
    Re: Help with guessing game :D Chris Angelico <rosuav@gmail.com> - 2013-10-29 22:53 +1100
      Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 04:54 -0700
        Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 05:05 -0700
          Re: Help with guessing game :D Alister <alister.ware@ntlworld.com> - 2013-10-29 12:58 +0000
            Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 06:03 -0700
              Re: Help with guessing game :D Alister <alister.ware@ntlworld.com> - 2013-10-29 13:07 +0000
                Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 06:10 -0700
                  Re: Help with guessing game :D Alister <alister.ware@ntlworld.com> - 2013-10-29 14:25 +0000
                    Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 07:40 -0700
                      Re: Help with guessing game :D Alister <alister.ware@ntlworld.com> - 2013-10-29 16:19 +0000
                        Re: Help with guessing game :D Neil Cerutti <neilc@norwich.edu> - 2013-10-29 17:22 +0000
                          Re: Help with guessing game :D rusi <rustompmody@gmail.com> - 2013-10-29 10:32 -0700
                      Re: Help with guessing game :D rusi <rustompmody@gmail.com> - 2013-10-29 09:24 -0700
                        Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 09:31 -0700
                          Re: Help with guessing game :D rusi <rustompmody@gmail.com> - 2013-10-29 09:40 -0700
                            Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 10:05 -0700
                              Re: Help with guessing game :D rusi <rustompmody@gmail.com> - 2013-10-29 10:13 -0700
                    Re: Help with guessing game :D rurpy@yahoo.com - 2013-10-29 10:24 -0700
                      Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 10:45 -0700
                        Re: Help with guessing game :D rurpy@yahoo.com - 2013-10-29 11:27 -0700
                          Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 11:35 -0700
                            Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 12:03 -0700
                              Re: Help with guessing game :D rurpy@yahoo.com - 2013-10-29 12:55 -0700
                                Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 13:08 -0700
                                Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 13:21 -0700
                                  Re: Help with guessing game :D rurpy@yahoo.com - 2013-10-29 14:25 -0700
                      Re: Help with guessing game :D rusi <rustompmody@gmail.com> - 2013-10-29 10:52 -0700
                        Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 10:55 -0700
                        Re: Help with guessing game :D rurpy@yahoo.com - 2013-10-29 11:26 -0700
                          Re: Help with guessing game :D rusi <rustompmody@gmail.com> - 2013-10-29 11:32 -0700
    Re: Help with guessing game :D Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-29 13:44 +0000
      Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 06:52 -0700
    Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 11:05 -0700
      Re: Help with guessing game :D Dave Angel <davea@davea.name> - 2013-10-29 19:09 +0000
        Re: Help with guessing game :D Robert Gonda <robertgonda1994@gmail.com> - 2013-10-29 12:15 -0700
          Re: Help with guessing game :D Dave Angel <davea@davea.name> - 2013-10-30 01:30 +0000

Page 2 of 2 — ← Prev page 1 [2]


#57954

Fromrurpy@yahoo.com
Date2013-10-29 11:27 -0700
Message-ID<8dbd7273-75fe-4a8c-a156-26131a0934e9@googlegroups.com>
In reply to#57942
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 not much to go on. :-)

Most of the time, when there is an error in a python program,
Python will print "traceback" error message.  When asking for 
help please copy and paste those lines in your post.  Without
that it is just a guessing game for anyone to try and figure
out what is wrong.

Did perhaps your traceback message look like this?

  File "xx3.py", line 28
    print ("digits matched: ", end='')
                                  ^

If so, you are running your program with python2, not python3.
So you need to either figure out how to run python3 (does entering
the command "python3" do anything?) or change the program to work
with python2.

If the error message was different than above, you need to post 
it here if people are to have any chance of helping you figure 
out what is wrong.

[toc] | [prev] | [next] | [standalone]


#57957

FromRobert Gonda <robertgonda1994@gmail.com>
Date2013-10-29 11:35 -0700
Message-ID<bc5ed6c3-5b19-40e7-bee8-3aeed77038c4@googlegroups.com>
In reply to#57954
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 if im posting this right so sorry)
> 
> 
> 
> "...an error, something about the 'end'" is not much to go on. :-)
> 
> 
> 
> Most of the time, when there is an error in a python program,
> 
> Python will print "traceback" error message.  When asking for 
> 
> help please copy and paste those lines in your post.  Without
> 
> that it is just a guessing game for anyone to try and figure
> 
> out what is wrong.
> 
> 
> 
> Did perhaps your traceback message look like this?
> 
> 
> 
>   File "xx3.py", line 28
> 
>     print ("digits matched: ", end='')
> 
>                                   ^
> 
> 
> 
> If so, you are running your program with python2, not python3.
> 
> So you need to either figure out how to run python3 (does entering
> 
> the command "python3" do anything?) or change the program to work
> 
> with python2.
> 
> 
> 
> If the error message was different than above, you need to post 
> 
> it here if people are to have any chance of helping you figure 
> 
> out what is wrong.

> It says that there is an error in this program and something about invalid syntax, should i perhaps redownload it?

[toc] | [prev] | [next] | [standalone]


#57958

FromRobert Gonda <robertgonda1994@gmail.com>
Date2013-10-29 12:03 -0700
Message-ID<13e7590e-402c-43d2-aa21-89aa7bf97606@googlegroups.com>
In reply to#57957
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,
> 
> > 
> 
> > > 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 not much to go on. :-)
> 
> > 
> 
> > 
> 
> > 
> 
> > Most of the time, when there is an error in a python program,
> 
> > 
> 
> > Python will print "traceback" error message.  When asking for 
> 
> > 
> 
> > help please copy and paste those lines in your post.  Without
> 
> > 
> 
> > that it is just a guessing game for anyone to try and figure
> 
> > 
> 
> > out what is wrong.
> 
> > 
> 
> > 
> 
> > 
> 
> > Did perhaps your traceback message look like this?
> 
> > 
> 
> > 
> 
> > 
> 
> >   File "xx3.py", line 28
> 
> > 
> 
> >     print ("digits matched: ", end='')
> 
> > 
> 
> >                                   ^
> 
> > 
> 
> > 
> 
> > 
> 
> > If so, you are running your program with python2, not python3.
> 
> > 
> 
> > So you need to either figure out how to run python3 (does entering
> 
> > 
> 
> > the command "python3" do anything?) or change the program to work
> 
> > 
> 
> > with python2.
> 
> > 
> 
> > 
> 
> > 
> 
> > If the error message was different than above, you need to post 
> 
> > 
> 
> > it here if people are to have any chance of helping you figure 
> 
> > 
> 
> > out what is wrong.
> 
> 
> 
> > It says that there is an error in this program and something about invalid syntax, should i perhaps redownload it?

> 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 incorrect it will say "H" as in too high or “L” if it's too low? (while still keeping "Y"). Do tell me if it sounds confusing :/

[toc] | [prev] | [next] | [standalone]


#57965

Fromrurpy@yahoo.com
Date2013-10-29 12:55 -0700
Message-ID<efa498ed-fb6c-44f8-ba81-9ed2193b1eb9@googlegroups.com>
In reply to#57958
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 incorrect it will say "H" as in
> too high or “L” if it's too low? (while still keeping "Y").
> Do tell me if it sounds confusing :/

Sure it's possible.  What do you think would happen if you 
replaced the code that compares the digits and prints Y or
N with with something like this?

  if guess_str[i] > number_str[i]: print ("H", end='')
  if guess_str[i] < number_str[i]: print ("L", end='')
  if guess_str[i] == number_str[i]: print ("Y", end='')

(you are comparing 1-character long strings containing a
digit between "0" and "9" but they will compare the same 
way numbers do.)

[toc] | [prev] | [next] | [standalone]


#57968

FromRobert Gonda <robertgonda1994@gmail.com>
Date2013-10-29 13:08 -0700
Message-ID<73bd2ca5-ccc4-48d3-a125-c6018bb25a34@googlegroups.com>
In reply to#57965
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 if the computer will again show “Y” if a digit
> 
> > is correct but if a digit is incorrect it will say "H" as in
> 
> > too high or “L” if it's too low? (while still keeping "Y").
> 
> > Do tell me if it sounds confusing :/
> 
> 
> 
> Sure it's possible.  What do you think would happen if you 
> 
> replaced the code that compares the digits and prints Y or
> 
> N with with something like this?
> 
> 
> 
>   if guess_str[i] > number_str[i]: print ("H", end='')
> 
>   if guess_str[i] < number_str[i]: print ("L", end='')
> 
>   if guess_str[i] == number_str[i]: print ("Y", end='')
> 
> 
> 
> (you are comparing 1-character long strings containing a
> 
> digit between "0" and "9" but they will compare the same 
> 
> way numbers do.)

>So your saying that it doesn't matter what "rule" I add it will work for as long as I add it to that line? (or replace?)

[toc] | [prev] | [next] | [standalone]


#57970

FromRobert Gonda <robertgonda1994@gmail.com>
Date2013-10-29 13:21 -0700
Message-ID<b8355a9f-12c1-4d24-878c-b7dd674f36b5@googlegroups.com>
In reply to#57965
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 if the computer will again show “Y” if a digit
> 
> > is correct but if a digit is incorrect it will say "H" as in
> 
> > too high or “L” if it's too low? (while still keeping "Y").
> 
> > Do tell me if it sounds confusing :/
> 
> 
> 
> Sure it's possible.  What do you think would happen if you 
> 
> replaced the code that compares the digits and prints Y or
> 
> N with with something like this?
> 
> 
> 
>   if guess_str[i] > number_str[i]: print ("H", end='')
> 
>   if guess_str[i] < number_str[i]: print ("L", end='')
> 
>   if guess_str[i] == number_str[i]: print ("Y", end='')
> 
> 
> 
> (you are comparing 1-character long strings containing a
> 
> digit between "0" and "9" but they will compare the same 
> 
> way numbers do.)

> 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

[toc] | [prev] | [next] | [standalone]


#57974

Fromrurpy@yahoo.com
Date2013-10-29 14:25 -0700
Message-ID<a93e6a95-8f0f-41d6-90ae-c055f5481d9a@googlegroups.com>
In reply to#57970
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 to convert the string digits back to
numbers that you can do arithmetic on.  The int() function
can do that.  Then you can do something like

 if guess_num > number_num + 3: ... print what you want here.

You'll find you get more and better answers to your questions 
if you attempt to do something yourself and when you find it is 
not doing what you want, post here saying what you tried, what 
it did, and how what it did is different from what you want.

You'll also get better responses if you edit out the empty
and excess ">" lines in the quoted text of your replies,
which you are still not doing.

[toc] | [prev] | [next] | [standalone]


#57944

Fromrusi <rustompmody@gmail.com>
Date2013-10-29 10:52 -0700
Message-ID<7b89cccb-0291-4b23-9b91-f4ed2dc61b41@googlegroups.com>
In reply to#57938
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 do you infer that your explanations were successful in creating some understanding?

[toc] | [prev] | [next] | [standalone]


#57947

FromRobert Gonda <robertgonda1994@gmail.com>
Date2013-10-29 10:55 -0700
Message-ID<8cd9feab-af23-44f5-8b56-6d21f2b295b6@googlegroups.com>
In reply to#57944
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 in the ">" the at the top of the message.
> 
> 
> 
> So from the most recent post do you infer that your explanations were successful in creating some understanding?

> >While of course it has, the bottom line is once I get it to work I will be able to experiment with it, I'm new to this and while you might not think this is a good way to learn i have been thought like this all my life (as far as I can remember) so it's not so easy for me when I don't even know where or have to begin and I don't mean to sound offensive. Thank you for your reply sir.

[toc] | [prev] | [next] | [standalone]


#57953

Fromrurpy@yahoo.com
Date2013-10-29 11:26 -0700
Message-ID<18dded54-2053-44fe-b8da-c33b03c62629@googlegroups.com>
In reply to#57944
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 the ">" the at the top of the message.

> So from the most recent post do you infer that your explanations 
> were successful in creating some understanding?

I have been suitably chastened and will have more respect for a variety
of approaches in the future.

[toc] | [prev] | [next] | [standalone]


#57955

Fromrusi <rustompmody@gmail.com>
Date2013-10-29 11:32 -0700
Message-ID<f2c91ec0-708e-427f-aafd-0a702f11c41e@googlegroups.com>
In reply to#57953
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 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 do you infer that your explanations 
> > were successful in creating some understanding?
> 
> 
> I have been suitably chastened and will have more respect for a variety
> of approaches in the future.

Heh! Dont be hard on yourself!
When youve been a teacher long enough you will know
- communication is the exception*
- misunderstanding is quite ok
- non-understanding is the norm

* Yeah Fr. Thomas Keating talks about the fact that he prefers communion to communication.  Hopefully when I go to heaven I'll find out how the admin there is so efficient

[toc] | [prev] | [next] | [standalone]


#57914

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2013-10-29 13:44 +0000
Message-ID<mailman.1759.1383054279.18130.python-list@python.org>
In reply to#57904
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.  Christian Tismer

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#57916

FromRobert Gonda <robertgonda1994@gmail.com>
Date2013-10-29 06:52 -0700
Message-ID<b2819d6e-b273-463d-8cae-c2b393472101@googlegroups.com>
In reply to#57914
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.
> 
> 
> 
> -- 
> 
> Python is the second best programming language in the world.
> 
> But the best has yet to be invented.  Christian Tismer
> 
> 
> 
> Mark Lawrence

ah okay, sorry didn't know about that

[toc] | [prev] | [next] | [standalone]


#57948

FromRobert Gonda <robertgonda1994@gmail.com>
Date2013-10-29 11:05 -0700
Message-ID<6308b97e-4d6d-4632-bf1a-b1400341896b@googlegroups.com>
In reply to#57904
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 your name?") #Asking the user to input their name
> 
> N = raw_input() #What the user's name is
> 
> import random #This is importing the random function
> 
> number = random.randint(1, 999) #This tells the random function to generate a random number between 1 to 1000
> 
> 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
> 
> while guessesTaken < 10: 
> 
>     print('Take a guess.') 
> 
>     guess = input()
> 
>     guess = int(guess)
> 
>     guessesTaken = guessesTaken + 1
> 
>     if guess < number: #Says that if the guess is too low it will print a message saying that the guess is too low
> 
>         print('Your guess is too low.') 
> 
>     if guess > number: #Says that if the guess is too high it will print a message saying that the guess is too high
> 
>         print('Your guess is too high.')
> 
>     if guess == number:
> 
>         break #Breaks the loop, meaning it will continue to loop for 10 times while giving them messages from above depending on their results
> 
> if guess == number:
> 
>     guessesTaken = str(guessesTaken)
> 
>     print("Congrat's, " + N + "! You managed to get the number in " + guessesTaken + " guesses!") #Tells the user they managed to guess it in x number of times
> 
> if guess != number: #If the user is unable to guess the number in 10 times it will stop the loop and give the user a message
> 
>     number = str(number)
> 
>     print("No, the right number was" + number)
> 
> 
> 
> However the problem is that it also asked me to do the following : If at least one of the digit guessed is right it will say "y" otherwise "n" which I can't seem to do :/ any help?

> 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?

[toc] | [prev] | [next] | [standalone]


#57959

FromDave Angel <davea@davea.name>
Date2013-10-29 19:09 +0000
Message-ID<mailman.1771.1383073771.18130.python-list@python.org>
In reply to#57948
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 symbol is supposed to indicate that another level of quoting is
occuring.  So when I saw your message, I first concluded that you sent a
blank reply.

(I also added another character in front of it, so you'd see it.
Apparently googlegroups messes up your view of things in order to cover
up its bugs in posting.

As for your question.  Yes, you did something wrong.  You thoroughly
underspecified the phrase  "not working."

When you run a program and it gets an exception, read the whole
traceback. And when you want help here, copy the WHOLE TRACEBACk.

If raw_input() is working without an exception, then you are NOT running
Python3.x.  Figure that out first, perhaps by sticking these two lines
at the beginning of your code:

import sys
print(sys.version)



-- 
DaveA

[toc] | [prev] | [next] | [standalone]


#57960

FromRobert Gonda <robertgonda1994@gmail.com>
Date2013-10-29 12:15 -0700
Message-ID<e0265991-38d0-430a-b314-eddc7001f248@googlegroups.com>
In reply to#57959
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 soemthing wrong?
> 
> 
> 
> 
> 
> Why did you add those two >> symbols in front of your new text?  Each
> 
> such symbol is supposed to indicate that another level of quoting is
> 
> occuring.  So when I saw your message, I first concluded that you sent a
> 
> blank reply.
> 
> 
> 
> (I also added another character in front of it, so you'd see it.
> 
> Apparently googlegroups messes up your view of things in order to cover
> 
> up its bugs in posting.
> 
> 
> 
> As for your question.  Yes, you did something wrong.  You thoroughly
> 
> underspecified the phrase  "not working."
> 
> 
> 
> When you run a program and it gets an exception, read the whole
> 
> traceback. And when you want help here, copy the WHOLE TRACEBACk.
> 
> 
> 
> If raw_input() is working without an exception, then you are NOT running
> 
> Python3.x.  Figure that out first, perhaps by sticking these two lines
> 
> at the beginning of your code:
> 
> 
> 
> import sys
> 
> print(sys.version)
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> DaveA

>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?

[toc] | [prev] | [next] | [standalone]


#57987

FromDave Angel <davea@davea.name>
Date2013-10-30 01:30 +0000
Message-ID<mailman.1782.1383096663.18130.python-list@python.org>
In reply to#57960
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 the stuff you typed. 
That's supposed to show what you are quoting.  One bracket is the person
you're replying to, two marks the stuff he was quoting, and so on.

Any decent mail program does it for you automatically, or with minimum
configuration.

Only googlegroups messes it up so consistently.

-- 
DaveA

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.python


csiph-web