Greater than 20

Define a function greater_than_20 that receives a number and if it is greater
than 20 returns True and if not returns False.


>>> greater_than_20(42)
>>> greater_than_20(19)

Test Cases

test less than 20 - Run Test

def test_less_than_20():
    assert greater_than_20(19) is False

test greater than 20 - Run Test

def test_greater_than_20():
    assert greater_than_20(42) is True

Solution 1

def greater_than_20(number):
    if number > 20:
        return True
    return False
def greater_than_20(number): pass