Python Python Basics (2015) Letter Game App Exiting

Scott Billsborough
Scott Billsborough
735 Points

This doesn't pass but is correct.

Just doesn't pass in the exercise but works perfectly in Workspaces.

firedoor.py
import sys

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

1 Answer

andren
andren
28,344 Points

Challenges are very picky when it comes to strings. The challenge asks you to print out "Enjoy the Show!", you print out "Enjoy the movie!" instead. If you fix that issue like this:

import sys

start_movie = input("Would you like to start the movie? Y/n ").lower()
if start_movie != 'n':
    print("Enjoy the Show!") # Print out the exact string the challenge asks for
else:
    sys.exit()

Then your code will pass the challenge.