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 corresponds to information for Jan, W corresponds to information for Feb
and so on For each month the corresponding sublist contains 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 total precipitation centered in a field of width hours of
sunlight centered in a field of width The information for each month is on a
separate line and the column headings should be as shown below.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
