Python program to calculate profit and loss || Profit and loss

Опубликовано: 17 Апрель 2026
на канале: Zeeshan_Tutorial
75
17

It appears that you've provided a Python program to calculate and determine whether there is a profit, loss, or neither based on the input of cost price and selling price. The program looks well-structured and performs the calculations correctly.

The user is prompted to input the cost price and selling price, and then the program calculates the profit or loss by subtracting the cost price from the selling price. Finally, it checks whether the result is positive (indicating a profit), negative (indicating a loss), or zero (indicating no profit or loss).

If you have any specific questions or if there's anything else you'd like assistance with, feel free to let me know!

#python
#programming