Suppose researchers have analyzed data from the spread of a particular disease and have fit the data to the following model, which predicts the number of people in a small population who will have the disease on day t:
()=20^3-t^4/100
Define a function named max_infection that will compute
()
for 20 days (i.e. for 1≤≤20
) and return two values:
the day at which the most people are infected, and
the number of people infected on that day.
I need to write a function that will return two values but I am not sure how to do that. I am new to python and am completely confused. I know I need to define the function first but even that in itself is still confusing to me
There are no arguments passed to this function. The expected answer is 16.875
people infected on day 15
.