equal
deleted
inserted
replaced
269 with the given year (each line in the CSV-list is of the form |
269 with the given year (each line in the CSV-list is of the form |
270 \texttt{year-01-someday,someprice}). |
270 \texttt{year-01-someday,someprice}). |
271 |
271 |
272 \item[(1.b)] Write a function \texttt{get\_first\_price} that takes |
272 \item[(1.b)] Write a function \texttt{get\_first\_price} that takes |
273 again a stock symbol and a year as arguments. It should return the |
273 again a stock symbol and a year as arguments. It should return the |
274 first January price for the stock symbol in given the year. For this |
274 first January price for the stock symbol in the given year. For this |
275 it uses the list of strings generated by |
275 it uses the list of strings generated by |
276 \texttt{get\_january\_data}. A problem is that normally a stock |
276 \texttt{get\_january\_data}. A problem is that normally a stock |
277 exchange is not open on 1st of January, but depending on the day of |
277 exchange is not open on 1st of January, but depending on the day of |
278 the week on a later day (maybe 3rd or 4th). The easiest way to solve |
278 the week on a later day (maybe 3rd or 4th). The easiest way to solve |
279 this problem is to obtain the whole January data for a stock symbol |
279 this problem is to obtain the whole January data for a stock symbol |