[Solved] Python for loops with an array [closed]


in your image is in quotes, is an f-string, but they forgot to add the f

year = [2016,2017,2018,2019,2020]

for i in year:
   rtx_price = (data.loc[f'{year}-07-31', 'RTX'])

6

solved Python for loops with an array [closed]