Sample Python Interview Question at Jisort

Write a simple program in python that calculates tax using the below tax bands

Monthly Bands of Taxable Income (KES) Tax Rate
0 – 12,500 10% of 12500
On the next 11,500 15%
On the next 11,500 20%
On the next 11,500 25%
Over 47,000 30%

 

Do it .

Here is a sample answer

 

This website stores cookies on your computer. Cookie Policy