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 trialMightyIronElf 15
1,946 PointsDefining Error
In my line: tickets_reamining -= num_tickets and while tickets_remaining >= 1: my workspace tells me I have a define error. I tried using parentheses, double quotation marks, and single quotation marks. It either tells me that the marks aren't supported or that the marks are illegal. I've referred back to the video and tried looking through some questions in the community but I can't find anything related to my problem.
1 Answer
Steven Parker
231,271 PointsSince you are comparing numerical quantities here you will not need any kind of quotes. But you seem to have a typo in the first line with "tickets_reamining" instead of "tickets_remaining". Fix that and see if it resolves your problem.
And for future questions take a look at these videos about Posting a Question, using Markdown formatting to preserve the code's appearance, and particularly this one about sharing a snapshot of your workspace.
MightyIronElf 15
1,946 PointsMightyIronElf 15
1,946 PointsOkay, thanks for your help and the video recommendations! :)