How can I make different inputs trigger the same output? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I make different inputs trigger the same output?

So I wrote this code, and it doesn't seem to work properly, I guess it's because == gets processed before OR. If I remove "ok" and "sure", it works as intended. But how can I make it so that "yes", "ok" and "sure" all trigger the same output? https://code.sololearn.com/cxh0FUNxkg7G/?ref=app

23rd Mar 2020, 10:06 AM
Julia Spencer
Julia Spencer - avatar
1 Answer
0
Yay, it worked!! Thank you so much for quick help!!
23rd Mar 2020, 10:12 AM
Julia Spencer
Julia Spencer - avatar