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 trialDaniel McFarlin
5,168 PointsSyntax error on line 2 of this coding challenge. But I have no idea why! help please!
Syntax error on line 2 of this coding challenge. But I have no idea why! help please! I don't see where I went wrong here, but I am sure if it was a snake it would have bit me by now... :( help please!
import sys
question = input("Do you want to start the movie? insert Y/n ").lower():
if question != 'n':
print("Enjoy the show!")
else:
sys.exit()
1 Answer
Ryan S
27,276 PointsHi Daniel,
The colon at the end of line 2 is causing your syntax error. That should be removed. Also, you'll need to double check the indentation of your if/else statements. Line 2 is simply a variable definition so there shouldn't be anything indented in relation to it.
Good luck.