Python Chapters

Python Program to find the cost price of one item, if the total selling price of 15 items and the total profit earned on them is input through the keyboard.

Structure of Python Program - Overview
SP = input("Enter Total Selling Price and Profit :")
Profit = input()

CP = SP - Profit;
CP = CP / 15;

print "\n\nCost Price per Item is :" , CP

Output :
Enter Total Selling Price and Profit : 100

Cost Price per Item is : 6

Leave a comment
Recent Comments
No Comments