CPSC120A
Fundamentals of Computer Science I

Post-lab 2

Values and Expressions

In this post-lab you will demonstrate your understanding of mathematical expressions in Python.

Details

Create a new file called postlab2.py. In this file, write a program that computes the average number of days in a month during a four year span. Don't forget about leap years! Your program must use arithmetic operators to calculate the average; simply printing the average number is not sufficient.

Example

$ python3 postlab2.py
Each month averages 30.4375 days during a 4 year period.

Submission

Submit your program as a .py file on the course Inquire page before class on Wednesday September 3rd.