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 trial

Python Python Basics (2015) Letter Game App Exiting

Not accepting my answer. This is right though or at least it works in the shell...

I can't figure out what is wrong here. Any help?

firedoor.py
import sys
while True:
    watch = input("Do you want to start the movie?: ").lower()
    if watch != "n":
        print("Enjoy the show!")
        break
    else:
        sys.exit()   

1 Answer

Please, give me more information about your problem. This code works truly

I actually solved it right after I posted. It didn't want a loop, even though it was following a massive section on loops. Thanks for the quick response.