Check out of boundaries
Define a function check_out_of_boundaries
that receives a number and returns
True
if it is greater than 10 OR less than 0 and False
otherwise.
Examples:
>>> check_out_of_boundaries(7)
False
>>> check_out_of_boundaries(12)
True
>>> check_out_of_boundaries(-3)
True
Solution 1
def check_out_of_boundaries(number):
if number > 10 or number < 0:
return True
return False