0
How do I get my code to accept multiple different inputs on the same line?
For something like that, I might have action = input(“”) if action == “Move”: print (“You moved.”) elif action == “No”: print (“No”) How can i get it to accept move, mOve, moVe, and all that in the same line, is it possible?
1 Antwort
0
Whatever language you're using, there should be something like a lowercase filter/attribute, for example:
action = input("").lowercase
Similarly there should be one that lets you convert it to a capitalised word.