Question: a ) Use dictionary and list element extraction methods to create variables Monday _ profit and Thursday _ profit that record the profits on these

a) Use dictionary and list element extraction methods to create variables "Monday_profit" and "Thursday_profit" that record the profits on these days and print the values of these variables. (3 points)
b) Create a list profitability for each day (profit = sales - costs). You can either manually type it or use a for loop. If you prefer, you may do this in a much elegant way using Numpy arrays. (3 points)
c) Use loops to print the profitability for each day: The loop should print the statements in this manner - "The profitability on day_name is ..." The day name must be replaced by actual name in each statement and "..." by the day's profitability. (4 points)

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!