Write a program to calculate the net salary of an employee, if a tax of 15% is taken on his gross-salary if it exceeds Rs. 20000 per month
Answers
Answered by
1
net_salary = lambda salary: salary - (salary * .15) if salary > 20000 else salary
print("Net Salary:", net_salary((salary := float(input("salary: ")))))
Similar questions