Python Python Basics (2015) Letter Game App Exiting

Logan Valdez
PRO
Logan Valdez
Pro Student 3,442 Points

What Do I Do?

Hello. I do not know what I am doing wrong with sys.exit(). How can I fix this?

firedoor.py
import sys

movie_start = input("Would you like to start the movie? Press n/N to begin")

if movie_start == "n" or "N":
    print("Enjoy the show!")
else:
    return sys.exit()

1 Answer

David Deberry
David Deberry
5,446 Points
import sys

movie_start = input("Would you like to start the movie? Press n/N to begin")

if movie_start == "n" or movie_start == "N":
    sys.exit()

else:
    print("Enjoy the show!")