Python Python Basics All Together Now Branch and Loop

Randolph Davidson
Randolph Davidson
1,053 Points

Syntax Error for this Challenge

Hello, I keep getting a syntax error every time I run the code. the Error comes on for line 16 of my code total=requested_tickets * TICKET_PRICE. I get an invalid Syntax error and according to the video and other files I have read I don't understand what is incorrect.

Randolph Davidson
Randolph Davidson
1,053 Points

https://w.trhou.se/yc9oe4epf2 Screenshot of the workSpace. Not sure whats wrong with the syntax of line 16. Any help i'm grateful for.

2 Answers

Ave Nurme
Ave Nurme
19,628 Points

Hi Randolph

You are missing ')' on line 15 in the end, it should be:

requested_tickets = int(input("Thanks {}, please tell me how many tickets are you interested in today? ".format(Guest)))

Sometimes when Python complains and points you to a specific row it can be you need to look a row higher or a row lower.

Good luck!

Randolph Davidson
Randolph Davidson
1,053 Points

Alexander Zakharov Thank you so much! Such a small error I didn't notice it. I guess this is what happens doing this at 03:00 lol. Also, many thanks for the tips. I will remember that.

Ave Nurme
Ave Nurme
19,628 Points

No worries, Randolph, happy to help! I've been there recently...had a bug in my code and stayed up almost half of the night trying to find & fix it :-)