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 trialMaximilian Richly
4,872 PointsI 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...
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
Andreas cormack
Python Web Development Techdegree Graduate 33,011 PointsHi 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
4,872 PointsThank you for your reply. Yes, I just saw that too. A silly mistake really.