background image

Exercise: Test Driven Development

Write some tests for this function 

before

 you write the 

function body.  Just return 0:

def average( lst ):

    

"""Return average of a list of numbers"""

    return 0

Comments:

Unit Testing in Python

navigate_before navigate_next