solutions

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

Test Cases

test over 10 - Run Test

def test_over_10():
    assert check_out_of_boundaries(12) is True

test in boundaries - Run Test

def test_in_boundaries():
    assert check_out_of_boundaries(7) is False

test negative - Run Test

def test_negative():
    assert check_out_of_boundaries(-3) is True