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

What else do I have to do to make this work?

I am pretty sure about the instructions. It won't let me pass so can you tell me if you see something wrong.

Thank you

firedoor.py
import sys

start = input("If you want to start the movie press n or N. Press anything else to exit")
if start.lower == 'n'
    print("Enjoy the show!")
else:
    sys.exit()

1 Answer

Daniel Boisselle
seal-mask
.a{fill-rule:evenodd;}techdegree
Daniel Boisselle
Front End Web Development Techdegree Student 17,438 Points

I entered this into the prompt and this worked for me:

import sys

response = input("If you want to start the movie press n or N. Press anything else to exit")
if response == 'n' or response == 'N':
    sys.exit()
else:
    print("Enjoy the show!")