Re: Please help with this

2013-11-13 Thread Peter Otten
mkharper wrote: > Hi Saad, > > I've had a play and the following "does something". > (I'm running Python 2.7 so replaced input with raw_input.) > (User can use upper or lower case, just lower it before test.) > (I simplified the questions/answers so I could answer them.) > > I'm out of time but

Re: Please help with this

2013-11-13 Thread mkharper
On Wednesday, November 13, 2013 4:18:58 AM UTC, saad imran wrote: > Could you point out any errors in my code: > > > > #This is a game where you have to escape a dragon. > > # By Saad Imran > > > > import random > > import pygame > > > > > > > > # Define questions and answers. > >

Re: Please help with this

2013-11-13 Thread mkharper
On Wednesday, November 13, 2013 4:18:58 AM UTC, saad imran wrote: > Could you point out any errors in my code: > > > > #This is a game where you have to escape a dragon. > > # By Saad Imran > > > > import random > > import pygame > > > > > > > > # Define questions and answers. > >

Re: Please help with this

2013-11-13 Thread mkharper
On Wednesday, November 13, 2013 4:18:58 AM UTC, saad imran wrote: > Could you point out any errors in my code: > > > > #This is a game where you have to escape a dragon. > > # By Saad Imran > > > > import random > > import pygame > > > > > > > > # Define questions and answers. > >

Re: Please help with this

2013-11-12 Thread Steven D'Aprano
On Tue, 12 Nov 2013 20:18:58 -0800, saad imran wrote: > Could you point out any errors in my code: Hi Saad, and welcome! As others have pointed out, you'll have better results if you tell us what errors you have, what result you actually expected, and what you have tried to do to fix it. If y

Re: Please help with this

2013-11-12 Thread Dave Angel
On Tue, 12 Nov 2013 20:18:58 -0800 (PST), saad imran wrote: Could you point out any errors in my code: que1 = "4481 *2" ans1 = "8962" que2 = "457 * 21" ans2 = "9597" These values should all be in a single named structure, probably a list of tuples. Then all that duplicated code could be cond

Re: Please help with this

2013-11-12 Thread Mark Lawrence
On 13/11/2013 04:34, Gary Herron wrote: On 11/12/2013 08:18 PM, saad imran wrote: Could you point out any errors in my code: Nope. You've got to do *some* of the work if you expect free volunteer help from people around here. Take the time to tell us what you expect this program to do,

Re: Please help with this

2013-11-12 Thread Ben Finney
saad imran writes: > Could you point out any errors in my code: This isn't a code review service; it is a community discussion forum. Do you have specific Python-related questions? What particular problems are you having with this code? -- \ “Pinky, are you pondering what I'm ponderi

Re: Please help with this

2013-11-12 Thread Gary Herron
On 11/12/2013 08:18 PM, saad imran wrote: Could you point out any errors in my code: Nope. You've got to do *some* of the work if you expect free volunteer help from people around here. Take the time to tell us what you expect this program to do, what actually happens when you run it,

Please help with this

2013-11-12 Thread saad imran
Could you point out any errors in my code: #This is a game where you have to escape a dragon. # By Saad Imran import random import pygame # Define questions and answers. que1 = "4481 *2" ans1 = "8962" que2 = "457 * 21" ans2 = "9597" que3 = "2345*23" ans3 = "53935" que4 = "Who plays against