Re: [Tutor] if then statements

2015-04-29 Thread Dave Angel
On 04/28/2015 09:24 PM, Jacqueline G Solis wrote: hello, I keep getting a syntax error. Could you please explain why that happens and how to correct it. def main (): print( "Welcome to Gonzo Burger!") order= int(input("Enter 1 if you want a hamburger,\ or 2 if you want a cheese

Re: [Tutor] if then statements

2015-04-29 Thread Steven D'Aprano
On Tue, Apr 28, 2015 at 08:24:57PM -0500, Jacqueline G Solis wrote: > hello, > > I keep getting a syntax error. Could you please explain why that > happens and how to correct it. Syntax errors are sometimes a bit tricky. Usually, they tell you were the error is: py> if (x + 1: File "", line

Re: [Tutor] if then statements

2015-04-29 Thread Alan Gauld
On 29/04/15 02:24, Jacqueline G Solis wrote: hello, I keep getting a syntax error. If you get an error always include the full message text in your queries. It helps enormously in finding the problem. Could you please explain why that happens and how to correct it. But in this case its o

Re: [Tutor] if then statements

2015-04-29 Thread Mark Lawrence
On 29/04/2015 02:24, Jacqueline G Solis wrote: hello, I keep getting a syntax error. Could you please explain why that happens and how to correct it. def main (): print( "Welcome to Gonzo Burger!") order= int(input("Enter 1 if you want a hamburger,\ or 2 if you want a cheesebur

[Tutor] if then statements

2015-04-29 Thread Jacqueline G Solis
hello, I keep getting a syntax error. Could you please explain why that happens and how to correct it. def main (): print( "Welcome to Gonzo Burger!") order= int(input("Enter 1 if you want a hamburger,\ or 2 if you want a cheeseburger:" )) if order == 1 : print("