Question: In python Create a list that contains 365 randomly generated numbers in the range [80,95] inclusive, representing temperature in degrees for 365 days at a

In python

Create a list that contains 365 randomly generated numbers in the range [80,95] inclusive,

representing temperature in degrees for 365 days at a tropical location.

The list, would look something like this: [84, 82, 94, 81, 90] only longer.

Write a function that accepts the list as a parameter and returns days that had temperatures of 90 degrees or above.

For the short example above, your function should return [3, 5], as on days 3 and 5, the temperature was 90 or above. Note that days are marked 1-365.

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 Databases Questions!