Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

        def can_drink(age):
    return False # Again - make this depend on the age!

src/p/y/python-fundamentals-HEAD/challenges/04-Functions/test_A_checking_again.py   python-fundamentals(Download)
def test_can_drink():
    '''This is a much clearer test now that we're using functions!'''
    assert A.can_drink(21) == True
    assert A.can_drink(22) == True
    assert A.can_drink(20) == False