Welcome to the Treehouse Community
Looking to learn something new?
This seems correct but TH says no
import sys start_movie = input("Do you wnat to start the movie? Y/N: ") if start_movie != "n" or start_movie != "N": print("Enjoy the show!") else: sys.exit()
Steven Parker220,416 Points
Combining comparison expressions can be a bit tricky. Let's translate this into English:
if start_movie != "n" or start_movie != "N":
start_movie is not the letter 'n', or it's not the letter 'N""...
start_movie contains any letter other than 'n', including 'N", this expression will be true because when you combine with "or" the whole expression is true when either side is true. And if the letter is 'n', the whole expression will be still true because it's not the letter 'N'. That means this expression will always be true for any possible letter.
The remedy is to combine inequality comparisons using and. That way both sides must be true for the whole expression to be true.