'Two variables with different values and IF statement isn't working on them if in the same loop

Okay, lets say I have three variables with different values, taking input from the user, and if input equals say variable a then print variable b in a string. I can't see a code to do this but if I use or for the two variables in the is statement it work. See code below



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source