Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAnthony Carey
Python Development Techdegree Student 2,122 PointsGetting a Syntax Error
Hello! The error Is in the masterTicket.py file in this workspace: https://w.trhou.se/xxrcyys7ne
File "masterTicket.py", line 16
amountDue = (numberOfTickets * ticketPrice)
^
SyntaxError: invalid syntax
1 Answer
Steven Parker
231,271 PointsMany times the system will not discover an error until it sees the next code line. So when you can't see anything wrong on the line specified, look at the previous line and you'll often see a syntax issue. .
Anthony Carey
Python Development Techdegree Student 2,122 PointsAnthony Carey
Python Development Techdegree Student 2,122 PointsI'm pretty new to this stuff but I do understand the general idea of what you are trying to say. So I tried to recreate my code from scratch just to get rid of any spacing errors and I ended up finding that on line 13 I forgot an extra closing parentheses! It seems to work now, thank you very much :)