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

it said my string object is not callable

im pretty sure im right on this one tho

firedoor.py
import sys
start_movie = input("do you want to start the movie ? y/n")
if start_movie() != "n":
    print("Enjoy the show!")
else:
    sys.exit()

3 Answers

Jimmy Smutek
seal-mask
.a{fill-rule:evenodd;}techdegree
Jimmy Smutek
Python Web Development Techdegree Student 6,629 Points

Hi, it looks like you're defining start_movie as a variable, but calling it as a function.

Try removing the parenthesis from start_movie()

Hope that helps!

i did what you said and the error i got was "didnt get an exit from 'start_movie' "

Jimmy Smutek
seal-mask
.a{fill-rule:evenodd;}techdegree
Jimmy Smutek
Python Web Development Techdegree Student 6,629 Points

Hmm, try adding .lower() to your input function. I'm on a phone and can't find the tick marks for formatting, but...

foo = input("stuff...").lower()

Otherwise typing "N" will not exit, only "n"