Python Trading - Basics

Hello,



Can anyone please guide me for example in Section 1, Unit 14-16 of the Payoff charts when i run for the output. i get the payoff chart fine.



However in each of those payoff charts i get the error message as "Generated Ouptut" is not matching with the "Expected output". 

Hi Siddharaju,

I believe you are referring to the interactive exercises present in Section 1, Units 16 and 17.



The interactive exercise units in Quantra courses help you learn and retain knowledge in a better manner, by reinforcing some of the python code that you may have implemented in the previous units.



However, these units are only designed to test your understanding of specific coding concepts. 

For example, the intent behind introducing the above two interactive exercises is to validate your ability to calculate the payoff of a call option using Python.

This objective is achieved if you are able to follow through with the instructions, complete the task by filling in the missing code, and obtain the expected output. 



In the case of the above interactive exercises, the expected outputs are limited to just printing the values of the payoff of the call option. But we currently do not expect you to plot the result for the same.

Therefore we suggest, you avoid adding any additional lines of code, as these may result in errors messages being displayed, such as the one mentioned above.



However, we still do encourage you to keep practising and applying your Python learnings, by experimenting and tweaking the values within the various code cells of the jupyter notebook units.



I hope this helped in clearing your doubt.

 

Hi Kevin,



First of all I thank you very much for your clear answer, I'm really glad by your response & very encouraging lines by you too.



So nice of you :slight_smile:



Yes, everything is clear now.



Best regards,

Siddharaju