Given below is a hypothetical table showing rate of income tax for male citizens below the age of 65 years.
Taxable income(Ti) in Rs. Income Tax in Rs.
Does not exceed Rs. 1,60,000 Nil
Is greater than Rs.1,60,000 and less
than or equal to Rs. 5,00,000 (Ti-1,60,000)* 10%
Is greater than Rs. 5,00,000 and less than or
equal to Rs. 8,00,000 [(Ti – 5,00,000) * 20%] +34,000
Is greater than Rs. 8,00,000 [(Ti – 8,00,000)* 30%] + 94,000
Write a Python program to input that age, gender (male or female) and taxable income of a person. If the age is more than 65 years or the gender is female, display “Wrong category”. If the age is less than or equal to 65 years and the gender is male, compute and display the income tax payable as per the table given above.