Question: Design and write a function which will calculate and display the stock level of a product at the end of the day. The function will
Design and write a function which will calculate and display the stock level of a product at the end of the day. The function will take as input the initial stock level, the amount we bought and the amount we sold. ( Screenshot the python code)
Add lines to main which get 3 values from the user, as shown below, the pass them to the function.
Sample output: Enter stock at start of day: 20
Enter amount of new stock received today: 10
Enter amount of stock sold: 25
Display stock amount at end of the day: 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
