Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

income = int(input('please enter your annual imcome!

(please enter numbers only)'))

tax_slabs = {'slab1':"No
Tax!!",'slab2':5,'slab3':10,'slab4':15,'slab5':20,'slab6':25,'slab7':30,}

if income <= 250000:


print('you wont have to pay income tax as your income is less than25000')
elif (income>=250001) and (income<=500000):
print('your tax slab is {}% and approx amount would be
{}'.format(tax_slabs['slab2'],(tax_slabs['slab2']*income)/100))
elif (income>=500001) and (income<=750000):
print('your tax slab is {}% and approx amount would be
{}'.format(tax_slabs['slab3'],(tax_slabs['slab3']*income)/100))
elif (income>=750001) and (income<=100000):
print('your tax slab is {}% and approx amount would be
{}'.format(tax_slabs['slab4'],(tax_slabs['slab4']*income)/100))
elif (income>=1000001) and (income<=1250000):
print('your tax slab is {}% and approx amount would be
{}'.format(tax_slabs['slab5'],(tax_slabs['slab5']*income)/100))
elif (income>=1250001) and (income<=1500000):
print('your tax slab is {}% and approx amount would be
{}'.format(tax_slabs['slab6'],(tax_slabs['slab6']*income)/100))
elif (income>1500000):
print('your tax slab is {}% and approx amount would be
{}'.format(tax_slabs['slab7'],(tax_slabs['slab7']*income)/100))

print('to check again,please re-run the program')

**annual income = 350001**

You might also like