listing16-1.py 188 B

123456789
  1. from area import rect_area
  2. height = 3
  3. width = 4
  4. correct_answer = 12
  5. answer = rect_area(height, width)
  6. if answer == correct_answer:
  7. print('Test passed ')
  8. else:
  9. print('Test failed ')