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
Get step-by-step solutions from verified subject matter experts
