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

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

        def exponentiate(x, y):
    return x ** y
        


src/p/y/python-fundamentals-HEAD/challenges/04-Functions/test_B_avoiding_side_effects.py   python-fundamentals(Download)
def test_exponentiate(capsys):
    # This is the last time, I swear!
    import B_avoiding_side_effects as B
    assert B.exponentiate(2,10) == 1024
    out, _ = capsys.readouterr()