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

Steve Mohimani
Steve Mohimani
2,365 Points

Not totally sure where the 'start_movie' function that I am being told Im not getting the right response from is.

Here's my code below, pretty sure Im using upper() right, right?

import sys user_input = input('wanna start the movie?') if user_input.upper() == 'N': print ('Enjoy the show!') else: sys.exit()

firedoor.py
import sys
user_input = input('wanna start the movie?')
if user_input.upper() == 'N':
    print ('Enjoy the show!')
else:
     sys.exit()

1 Answer

Ryan S
Ryan S
27,276 Points

Hey Steve,

Yes you are using everything correctly. However, your if statement is actually doing the opposite of what the challenge is asking. You should be checking if the input is not equal to 'N' or 'n', then start the show. Other than that it all looks good.

Good luck.