Question: . Create a python function to add values to an empty dictionary called temperature such that temperature = { Week 1 : { Monday :

. Create a python function to add values to an empty dictionary called temperature such that temperature ={Week1: {Monday: 25,Tuesday: 32,Wednesday: 28,Thursday : 29,Friday: 35}, Week2: {Monday: 35,Tuesday: 12,Wednesday: 18,Thursday : 19,Friday: 15}}
Create another two functions, the first one adds all the temperatures of Week1 and outputs the added value, and the second one adds the temperatures of Wednesday of Week1 and Week2, and add the temperatures of Friday of Week1 and Week2 and output it as a list (Marks 10)

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!