def total_units(courses):
    'Finds the total units in a list of Course objects'
    total = 0
    for course in courses:
        total += course.total_units
    return total
Finds the total units in a list of Course objects
def total_units(courses):
    
    total = 0
    for course in courses:
        total += course.total_units
    return total