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

Maximilian Richly
Maximilian Richly
4,872 Points

I get the error: Didn't get the right response from `start_movie`. But this is not mentioned in the question prompt...

I get the error: Didn't get the right response from start_movie. But this is not mentioned in the question prompt...

firedoor.py
import sys


bla = input("Do you want to start the movie? Y/n ")

if bla == 'n':
  print("Enjoy the show!")
elif bla == 'N':
  print("Enjoy the show!")
else:
  sys.exit()

2 Answers

Hi Maximilian Richly

The challenge wants you to print out 'Enjoy the show' if the user does not select N or n i.e they want to watch the show. Also if you convert the user_input to lowercase it will save you a few lines of code.

import sys


bla = input("Do you want to start the movie? Y/n ")

if bla.lower() != 'n':
  print("Enjoy the show!")
else:
  sys.exit()
Maximilian Richly
Maximilian Richly
4,872 Points

Thank you for your reply. Yes, I just saw that too. A silly mistake really.