Question: THIS IS PYTHON ! ! The following list shows the weather information for each month for a city for the year W [ 0 ]

THIS IS PYTHON !!
The following list shows the weather information for each month for a city for the year
W[0] corresponds to information for Jan, W[1] corresponds to information for Feb
and so on. For each month the corresponding sublist contains 3 items: the first is the
name of the month, the second is the total precipitation (in mm ) in the month and the
third is total number of hours of sunlight in that month.
Your program should display the following outputs:
i. Calculate and display the total annual precipitation, the average monthly
precipitation and the average daily precipitation for the year.
ii. Determine the month with the lowest number of hours of sunlight. Display the
month and corresponding value.
iii. For each month display the following information: month name (right justified in
a field of width 7), total precipitation (centered in a field of width 20), hours of
sunlight (centered in a field of width 20). The information for each month is on a
separate line and the column headings should be as shown below.
THIS IS PYTHON ! ! The following list shows the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!