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 RĂ©ponse
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.