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?

1st May 2019, 11:30 AM
IceBoltGaming IBG
IceBoltGaming IBG - avatar
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.
1st May 2019, 11:47 AM
Rincewind
Rincewind - avatar