Re: [Tutor] My code isn't working properly

2016-06-20 Thread Alan Gauld via Tutor
On 20/06/16 09:25, Sopan Shewale wrote: > check it here - http://textsnip.com/6bd6jh Tried it and it worked fine in v2.7. To run in v3 I added a few parens after the prints and put the line raw_input = input at the top. I also removed the annoying prompt at the end of the loop. But

Re: [Tutor] My code isn't working properly

2016-06-20 Thread Sopan Shewale
Yup! His problem must be indentation. Apart from him, everybody from mailing list is worried about his problem ;) Regards, On Mon, Jun 20, 2016 at 7:08 AM, boB Stepp wrote: > On Mon, Jun 20, 2016 at 2:59 AM, Sopan Shewale > wrote: > > You

Re: [Tutor] My code isn't working properly

2016-06-20 Thread boB Stepp
On Mon, Jun 20, 2016 at 2:59 AM, Sopan Shewale wrote: > You need to worry about indentation ;) & spells (.. you seriously want to > use input instead of raw_input? ) The book the OP is using is Python 3-based. He should be using "input()" as he did. Otherwise, it does

Re: [Tutor] My code isn't working properly

2016-06-20 Thread Sopan Shewale
check it here - http://textsnip.com/6bd6jh On Mon, Jun 20, 2016 at 1:01 AM, Alan Gauld via Tutor wrote: > On 20/06/16 08:16, Minhaj Ahmed via Tutor wrote: > > Hi,I'm studying Michael Dawsons 'Python programming for absolute > > beginners',in chapter 5,page 129,the author

Re: [Tutor] My code isn't working properly

2016-06-20 Thread Alan Gauld via Tutor
On 20/06/16 08:16, Minhaj Ahmed via Tutor wrote: > Hi,I'm studying Michael Dawsons 'Python programming for absolute > beginners',in chapter 5,page 129,the author writes a program that records > high scores in a game. I have done exactly as the author has set out and > yet my code isn't doing what

Re: [Tutor] My code isn't working properly

2016-06-20 Thread Sopan Shewale
You need to worry about indentation ;) & spells (.. you seriously want to use input instead of raw_input? ) See if following works for you? -- #!/usr/bin/python scores = [] choice = None while choice !="0": print \ """ High scores 0-Exit 1-Show

[Tutor] My code isn't working properly

2016-06-20 Thread Minhaj Ahmed via Tutor
Hi,I'm studying Michael Dawsons 'Python programming for absolute beginners',in chapter 5,page 129,the author writes a program that records high scores in a game. I have done exactly as the author has set out and yet my code isn't doing what the author says it should be doing. The code is printed