#define a function def tax_salary(salary): if salary < 5e5: tax= 0.01*5e5 elif salary <7e5: tax = 0.01*5e5 + (salary-5e5)*0.02 elif salary < 10e5: tax =0.01*5e5 + 2e5*0.02+ (salary-7e5)*0.1 else: tax = 0.01*5e5 + 2e5*0.02+ 3e5*0.1+ (salary-10e5)*0.02 return tax#Examplesalary = 75e4tax = tax_salary(salary)print(f'For annual salary of {salary}, the tax is {tax}')
Wednesday, February 5, 2025
Pythone code to calculate tax for annual salary
Subscribe to:
Post Comments (Atom)
-
#RightToRejectin2084 #WeWantRightToRejectin2084 Kathmandu District Rate 2081/82 ( काठमाडौँ जिल्ला दर रेट २०८०।८१ ) Download Ji...
-
District Rates of All District 2080/81 (जिल्ला दर रेट २०८१/८२) Jilla Dar Rate 2081-82 #RightToRejectin2084 #WeWantRightToRejectin2084 [D...
-
Nepali Unicode Romanized Nepali Unicode Romanized is the new Layout with the keys rearranged as the romanized keyboard , so as to facilita...
No comments:
Post a Comment