Not able to get output even code in exercise is right

Course Name: Forex Trading using Python: Basics, Section No: 2, Unit No: 15, Unit type: Exercise

Hi Shirang,



As you know, Python throws an error if there is an indentation where it's not supposed to be. I check the screenshot you have shared and you can see that both lines should be one below the other, like as follows. 

   # Compute 50-day returns 

   # Type your code below

   currency_returns = currency_data.iloc[-1]/currency_data.iloc[0] - 1

   print(currency_returns.head(3))



I hope this helps.