Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CVS Programming Looking at the following code, what would you add to the right o

ID: 3717112 • Letter: C

Question

CVS Programming

Looking at the following code, what would you add to the right of the equal sign in the body of the code

So you get the following output

import requests url- "https://queryl .finance.yahoo.com/v7/finance /download/GOOG ?period1-1492214478&period2-1523750478;&interval;=1d&events2h;?story&crumb;=N35dF29nN11" response- requests.post (url) # print dir(response) data - response.text.strip().split("In) for index, value in enumerate(data): if index > e; # doesn't show yeader (Date, 0pen, High, Low, Close, Volume, Adj Close) row value, split(",") # separating it by commas # Date is index of # Open index of 1 # High is index of 2 # etc # use the variable·row, which is now a·list' to write # what each value is equal to # fill out the right side of the equal sign date openprice - highprice lowprice closeprice volume # notice we are cutting out adjusted close print "date-( open- high- lo- close( voluef" .format (date, openprice, highprice, lowprice, closeprice, volume)

Explanation / Answer

The expressions after = :

date = row[0]
openprice = row[1]
highprice = row[2]
lowprice = row[3]
closeprice = row[4]
volume = row[5]