0 votes
1 view
in Python by (12.7k points)

How would I decide if a given integer is between two different numbers (for example more prominent than/equivalent to 10000 and not exactly/equivalent to 30000)? 

I'm utilizing 2.3 IDLE and what I've endeavored so far isn't working:

if number >= 10000 and number >= 30000:

    print ("you have to pay 5% taxes")

1 Answer

0 votes
by (26.4k points)

Try the below code:

if 10000 <= number <= 30000:

    pass

Check this docs for more details

Are you interested to learn the concepts of Python? Join the python training course fast!

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...