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

Need help with this challenge

I have written the code for this challenge and it right but it says that the start_movie didn't get the right response.

firedoor.py
import sys

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

1 Answer

Andrey Misikhin
Andrey Misikhin
16,529 Points
import sys

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

film()
Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,702 Points

Hi there Andrey Misikhin

I do love that you are taking the time to help answer questions from other students. Though if you are going to give the passing answer, please try and summarize/comment the reason something didnt work.

If a student just copy/pastes in the passing answer, I mean its cool if all they missed was some parenthesis. But for the learning process to happen or if you really want to be a really effective "mentor" to these students you are helping. It is better to not give them the answer, but instead hint them in the right direction. If they can find the answer with a few hints and solve it themselves, they will learn far more than copy/pasting code!

Awesome that you are taking the time to help answer questions! I learned a lot helping students solve bugs in code.