Mohammad Syed Raihaan1,358 Points
Help with 'exiting' objective.
I don't understand what the problem is here. Can someone explain to me what's wrong and what this task expects me to do?
import sys a=str(input("Do you want to start the movie?")) if a == "n" or "N": sys.exit() else: print("Enjoy the show!")
Your statement always evaluates to true.
if a == "n" or "N": As "N" is not evaluated against anything Python seems to interpret always as True, so you will never get to False. If you go to python console in workspace you can confirm with bool() expressions to confirm results.
As a hint using the lower() or upper() function could be one way of simplifying the logic without using and/or for this challenge. The other way is making sure your "N" is compared to something.