Write a function to calculate the new selling price based on discount percentage


Topic: Write a function to calculate the new selling price based on discount percentage

Solution

def cal_sp_after_discount(sp:float,discount:float)->float:
    return sp*(1 - discount/100)



List all Python Programs