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 trialV Donovan
3,376 PointsI am getting an error for the first line that was written by Treehouse. I think my code is also wrong. Solution?
I suspect my code is incorrect here, but the initial error is coming up for Line 1, which was written by Treehouse. Can someone give me the solution and for the future, is there a place where we can find solutions once we have made several attempts to solve a problem, rather than having to post a question to the forum?
admitted = None
If age >= 13:
admitted = 1
2 Answers
Steven Parker
231,248 PointsSometimes, errors are detected on a line next to where the actual error is. You have to get used to watching for that.
Language keywords are case-sensitive. Instead of If, you need to write if (lower case).
When a keyword is recognised, it will appear in a different color because of syntax highlighting - that can provide a helpful clue. Notice the color of the lowercase if below:
if age >= 13:
Finally, you can often find a solution in a question someone has asked before. Always try a search before you post.
V Donovan
3,376 PointsThanks Steven!