2)Write a function that checks whether a number is in a given range (inclusive of high and low) python 1

2)Write a function that checks whether a number is in a given range (inclusive of high and low) python

if 10000 <= number <= 30000:

Here is what the above code is Doing:
1. It's checking if the number is between 10000 and 30000.
2. If it is, it's printing out the number.
3. If it isn't, it's printing out "The number is outside the range."

Similar Posts