Slide 32
Slide 32 text
def test1():
assert max_product([1, 2, 5]) == 10
def test2():
assert max_product([5, 1, 2, 3]) == 15
def test3():
assert max_product([5, 1, 2, 6, 3, 1]) == 30
def test4():
with raises(TabError):
max_product([1])
@hillelogram
hillelwayne.com