[Solved] python program error elif else if [closed]


if Enter == "Yes" or "yes":

This is not how or works. This is interpreted as if (Enter == "Yes") or "yes":. In python, non-empty strings are always true, so all of the if statements like that will be true. I would suggest something like

if Enter.lower() == "yes":

which takes care of all of the upper/lower case combinations.

4

solved python program error elif else if [closed]