0
How to are a Python Program to Get bonus salary of an Employee????
Write a Program to decide how much bonus emply will get based on his salary (Condition:-Whose Salary > 25,000 they get 10% bonus will get and whose salary<25,000 then they get 15% bonus)
3 Réponses
+ 3
Yuvraj Jha Can you share your attempt with it?
0
Yes
0
something is unclean. what if the salary is exactly 25_000? :D
try something like this:
if salary >= 25_000:
return salary + (salary * 0.1)
else:
return salary + (salary * 0.15)