order = (int(input('Order:')))
quantity = (float(input('Quantity:')))
selling_price = (int(input("Selling price:")))
#error
try:
a = sell1ng_price >= 0
except ValueError:
print('ne to')
a = 0
#1
purchase_price = order * quantity
#2
sell1ng_price = selling_price * quantity
#3
aprecent = sell1ng_price * 0.13
bprecent = sell1ng_price - aprecent
#4
prof = bprecent - purchase_price
print('Profit = ', prof)
print('Information: \n Purchase price = ', purchase_price, '\n Sell1ng price = ', sell1ng_price)
-
Вопрос задан
-
53 просмотра