Jump to content
1 minute ago, Enderg312 said:

I did use a if statement, I want to press w a s or d to exit the program. But for some reason it doesn't work.

userinput = input("What would you like to do?")
if (userinput == "w"):
    exit()
if (userinput == "a"):
    exit()

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×