# -*- coding: utf-8 -*- """ Created on Thu Sep 22 10:03:56 2016 @author: progprim """ def area(a, b=1): """Given the lengths a and b of the sides of a rectangle, compute and return the area of the shape.""" return a * b def f(a, b, c): print("a = {}, b = {}, c = {}".format(a, b, c)) def test_area(): print("Running tests for area function") assert area(0, 0) == 0 assert area(1, 2) == 2 assert area(2, 1) == 2 assert area(1., 2) == 2 def main(): print("the area is {}".format(area(2.5))) print("the area is {}".format(area(9))) print("the area is {}".format(area(2))) print("the area is {}".format(area(2.5, 1.5))) main()