What is wrong with the program? (Python)

I’m a beginner in Python and I’m trying to review and solve some practice questions before my next week. I tried to write a program using if, elif and else statements but the last one isn’t working properly when I run the code and I can’t pinpoint the problem.

In the elif clause, you had to use and .

Now it satisfies that annualSalary >= 25000
But doesnt satisfy annualSalary <= 40000
Since you used or, it returns True
Use and instead

3 Likes

Yo!! Thanks so much bro, makes sense! I keep looking past these things…

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.