2026012903

Run Settings
LanguagePython
Language Version
Run Command
income = input('Please input your annual income for Yr 2023: ') income0 = int(income) at = 0 if income0 <= 50000: at = income0*2/100 elif income0 <= 100000: at = 1000+(income0-50000)*5/100 elif income0 <= 150000: at = 3500+(income0-100000)*10/100 elif income0 <= 200000: at = 8500+(income0-150000)*15/100 else: at = 16000+(income0-200000)*25/100 st = income0*16/100 print(income) print('The result is as follows:') print('{:<32}${:>10.1f}'.format('Your income is:', income0)) print('{:<32}${:>10.1f}'.format('your projected accumulated tax:', at)) print('{:<32}${:>10.1f}'.format('your projected standard tax:', st)) pt = at if at<st else st print('\n{:<32}${:10.1f}'.format('your payable tax:', pt))
Editor Settings
Theme
Key bindings
Full width
Lines