• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
October 07, 2022 |630 Views
Python program to find the Profit Or Loss
  Share  1 Like
Description
Discussion

In this video, we will see how to write a Python program to find profit and loss

We will cover the following in this section:

1. Understand the concept of how to get the odd number from a list.
2. Program to find the odd numbers using simple approach

We will first gather data from the user before using a straightforward formula to calculate profit and loss: 

Profit = Selling Price - Cost Price, or Loss = Cost Price - Selling Price 

Here, we are using abs() to modify any negative numbers that may have resulted from a loss. Next, we are calculating the proportion of a loss or profit using the loss or profit percentage method.

Read More