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

Toubleshooting objective anser

Obviously doing something wrong, cannot figure out what or why? Thanks in advance.

firedoor.py
import sys

def start_movie():  
    answer = input("Would you like to start the movie? ").lower()
    if answer != 'n':
        print("Enjoy the show!")
    else:
        sys.exit()

1 Answer

AJ Salmon
AJ Salmon
5,675 Points

Hey Jared,

Your function works perfectly, but this challenge isn't asking for you to write a function! You just need to delete line 3 and move lines 4-8 out of the start_movie function (un-indent a step). Hope this helps!

...wow...thank you AJ! seems to be this simplicity and over-complications that are throwing me snags learning this. Appreciate your feedback.

AJ Salmon
AJ Salmon
5,675 Points

My pleasure! Sometimes it's easy to mix up exactly what the challenge is asking for. If you were writing a complete program, it would actually be ideal to write a start_movie function, so you could call it later. You totally had the right idea :) You just had a little more than you needed. Happy coding!!!