Computer Science, asked by babitachaudhary04, 10 months ago

write a python code to calculate and display selling price of an item​

Answers

Answered by qwtiger
20

Answer:

The following code is written in python code which will calculate the discount  and display selling price of an item​

# input sale amount

amt = int(input("Enter Sale Amount: "))  

# checking conditions and calculating discount

if(amt>0):

   if amt<=5000:

      disc = amt*0.05

   elif amt<=15000:

       disc=amt*0.12

   elif amt<=25000:

       disc=0.2 * amt

   else:

        disc=0.3 * amt

print("Discount : ",disc)

print("Net Pay  : ",amt-disc)

else:

   print("Invalid Amount")

Answered by gaythrig940
7

Answer:

The following code is written in python code which will calculate the discount and display selling price of an item.

Similar questions