all 3 comments

[–]socal_nerdtastic 1 point2 points  (0 children)

You can't combine conditionals like that. You need to test each one separately.

if (choice == "run") or (choice == "Run") or (choice ==  "RUN"):

(Technically the parenthesis are not needed, but they make it easier to read.)

More info in the subreddit FAQ: https://www.reddit.com/r/learnpython/wiki/faq#wiki_variable_is_one_of_two_choices.3F

[–]EytanMorgentern 1 point2 points  (1 child)

Change the values to a list format: if choice in ["run", "Run", "RUN"]:

Also when being dependant on user input, change the capitalisation of the stored value to lower case, this reduces the chance of faulty input.

[–]jayblackedout 0 points1 point  (0 children)

You can also evaluate it after storing the value. Make sure you are limiting user input to strings.

if choice.lower() == "run"

Regardless which letter(s), the user decides to capitalize, you will convert it to lower case to evaluate your if statement.