You will write three functions about buying shares and test them on the lesson: ₹ in ₹ shares at ₹.
Your tasks.
shares_bought, return the number of whole shares the money buys. Use //.premium, return the market value minus the face value. It is negative for a share at a discount.face_value_of_holding, return the number of shares times the face value.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…