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!
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 trial
Doyle LardellCourses Plus Student 888 Points
looks like i did everything right
import sys while True: start = input("If you want to start movie enter any button, if not press n: ") if start.lower() == 'n': sys.exit() elif: print("Enjoy the show!")
Jon Mirow9,864 Points
So close! I suspect that you're main error happened when you were editing or refactoring your code. Your if/else block currently has a elif with no condition. It's safe to use an else there in this case, and you need to unindent that to match the if higher up. Finally this specific question doesn't need a loop. That's good thinking though - quite often if you're asking for imput from a user you would want to use a loop to ensure that the user gives you the "right" kind of input, but in this case we don't need it. :)
Hope it helps!