Question: How do I do this in Python? Please post a screenshot of the code! The researcher at UC San Diego Health now wants to predict

How do I do this in Python? Please post a screenshot of the code!

How do I do this in Python? Please post a screenshot of

The researcher at UC San Diego Health now wants to predict COVID-19 cases in the next few days! She has a list cases which contains the current number of cases in San Francisco, Santa Barbara, Los Angeles, and San Diego. cases = [12508, 9969, 310595, 57409] She also has a list predicted_growths which contains the predicted number of new cases for every city in the next few days. For example: Suppose today is 11/02/2020, predicted_growths = [100, 200, 300] which means that the predicted number of new cases on 11/03/2020 is 100 for every city, the predicted number of new cases on 11/04/2020 is 200 and the predicted number of new cases on 11/05/2020 is 300. Your job: Given cases and predicted_growths , using nested for-loops, help the researcher print out the predicted number of all cases for each city in the next k days, where k is the length of predicted_growths . Note: you can assume k > 0; you don't need to initialize cases and predicted_growths since we will initialize them before running your code. Sample 1: cases = [12508, 9969, 310595, 57409] predicted_growths = [100, 200, 300] Output should be: [12608, 10069, 310695, 57509] [12808, 10269, 310895, 57709] [13108, 10569, 311195, 58009]

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!