Please write a code in Colab to show the profit in the 5 scenarios of part D of question 10.3 above?

The code is in the second picture.

Please write a code in Colab to show the profit in the 5 scenarios of part D of question 103 above The code is in the second picture class=
Please write a code in Colab to show the profit in the 5 scenarios of part D of question 103 above The code is in the second picture class=