Taxrates = {
    "Single": float(12200.00),
    "Married Filing Jointly": float(24400.00),
    "Head of Household": float(18350.00)
    }

FilingStatus = str.lower((input("What is your filing status? (Single, Married Filing Jointly, or Head of Household?  ")))
if FilingStatus == "single":
     FilingStatusCheck = True
elif FilingStatus == "married filing jointly":
     FilingStatusCheck = True
elif FilingStatus == "head of household":
     FilingStatusCheck = True
else:
    print("Please enter a correct filing status.")
    import sys
    sys.exit()
    FilingStatusCheck = False

     
while FilingStatusCheck == True:
     try:
          TaxableIncomeBD=float(input("What is your taxable income?   "))
          TIBD = round(TaxableIncomeBD,2)
     except ValueError:
          print("You must enter a number.")
          continue
     if TaxableIncomeBD < 0:
          print("Your income cannot be a negative number.")
     else:
          break

if FilingStatus == "single":
    SD = Taxrates.get("Single")
elif FilingStatus == "married filing jointly":
    SD = Taxrates.get("Married Filing Jointly")      
else:
     SD = Taxrates.get("Head of Household")

TIAD = TIBD - SD


i = 1
while FilingStatus == "single" and i < 2:
     if TIAD <= 9700:
          TaxRate = .10
     elif TIAD <= 39475:
          TaxRate = .12
     elif TIAD <= 84200:
          TaxRate = .22
     elif TIAD <= 160725:
          TaxRate = .24
     elif TIAD <= 204100:
          TaxRate = .32
     elif TIAD <= 510300:
          TaxRate = .35
     else:
          TaxRate = .37
     i += 1

while FilingStatus == "married filing jointly" and i < 2:
     if TIAD <= 19400:
          TaxRate = .10
     elif TIAD <= 78950:
          TaxRate = .12
     elif TIAD <= 168400:
          TaxRate = .22
     elif TIAD <= 321450:
          TaxRate = .24
     elif TIAD <= 408200:
          TaxRate = .32
     elif TIAD <= 612350:
          TaxRate = .35
     else:
          TaxRate = .37
     i += 1

while FilingStatus == "head of household" and i < 2:
     if TIAD <= 13850:
          TaxRate = .10
     elif TIAD <= 52850:
          TaxRate = .12
     elif TIAD <= 84200:
          TaxRate = .22
     elif TIAD <= 160700:
          TaxRate = .24
     elif TIAD <= 204100:
          TaxRate = .32
     elif TIAD <= 510300:
          TaxRate = .35
     else:
          TaxRate = .37
     i += 1     


TaxesDue = TaxRate * TIAD
print("Your standard deduction amount is: "+"${:,.2f}".format(SD)+ " and your taxes due are "+"${:,.2f}".format(TaxesDue))

e3e0c09abfeaedb4d60419f53b61b168fa7277dc
<mask token>

<mask token>
if FilingStatus == 'single':
    FilingStatusCheck = True
elif FilingStatus == 'married filing jointly':
    FilingStatusCheck = True
elif FilingStatus == 'head of household':
    FilingStatusCheck = True
else:
    print('Please enter a correct filing status.')
    import sys
    sys.exit()
    FilingStatusCheck = False
while FilingStatusCheck == True:
    try:
        TaxableIncomeBD = float(input('What is your taxable income?   '))
        TIBD = round(TaxableIncomeBD, 2)
    except ValueError:
        print('You must enter a number.')
        continue
    if TaxableIncomeBD < 0:
        print('Your income cannot be a negative number.')
    else:
        break
if FilingStatus == 'single':
    SD = Taxrates.get('Single')
elif FilingStatus == 'married filing jointly':
    SD = Taxrates.get('Married Filing Jointly')
else:
    SD = Taxrates.get('Head of Household')
<mask token>
while FilingStatus == 'single' and i < 2:
    if TIAD <= 9700:
        TaxRate = 0.1
    elif TIAD <= 39475:
        TaxRate = 0.12
    elif TIAD <= 84200:
        TaxRate = 0.22
    elif TIAD <= 160725:
        TaxRate = 0.24
    elif TIAD <= 204100:
        TaxRate = 0.32
    elif TIAD <= 510300:
        TaxRate = 0.35
    else:
        TaxRate = 0.37
    i += 1
while FilingStatus == 'married filing jointly' and i < 2:
    if TIAD <= 19400:
        TaxRate = 0.1
    elif TIAD <= 78950:
        TaxRate = 0.12
    elif TIAD <= 168400:
        TaxRate = 0.22
    elif TIAD <= 321450:
        TaxRate = 0.24
    elif TIAD <= 408200:
        TaxRate = 0.32
    elif TIAD <= 612350:
        TaxRate = 0.35
    else:
        TaxRate = 0.37
    i += 1
while FilingStatus == 'head of household' and i < 2:
    if TIAD <= 13850:
        TaxRate = 0.1
    elif TIAD <= 52850:
        TaxRate = 0.12
    elif TIAD <= 84200:
        TaxRate = 0.22
    elif TIAD <= 160700:
        TaxRate = 0.24
    elif TIAD <= 204100:
        TaxRate = 0.32
    elif TIAD <= 510300:
        TaxRate = 0.35
    else:
        TaxRate = 0.37
    i += 1
<mask token>
print('Your standard deduction amount is: ' + '${:,.2f}'.format(SD) +
    ' and your taxes due are ' + '${:,.2f}'.format(TaxesDue))

Taxrates = {'Single': float(12200.0), 'Married Filing Jointly': float(
    24400.0), 'Head of Household': float(18350.0)}
FilingStatus = str.lower(input(
    'What is your filing status? (Single, Married Filing Jointly, or Head of Household?  '
    ))
if FilingStatus == 'single':
    FilingStatusCheck = True
elif FilingStatus == 'married filing jointly':
    FilingStatusCheck = True
elif FilingStatus == 'head of household':
    FilingStatusCheck = True
else:
    print('Please enter a correct filing status.')
    import sys
    sys.exit()
    FilingStatusCheck = False
while FilingStatusCheck == True:
    try:
        TaxableIncomeBD = float(input('What is your taxable income?   '))
        TIBD = round(TaxableIncomeBD, 2)
    except ValueError:
        print('You must enter a number.')
        continue
    if TaxableIncomeBD < 0:
        print('Your income cannot be a negative number.')
    else:
        break
if FilingStatus == 'single':
    SD = Taxrates.get('Single')
elif FilingStatus == 'married filing jointly':
    SD = Taxrates.get('Married Filing Jointly')
else:
    SD = Taxrates.get('Head of Household')
TIAD = TIBD - SD
i = 1
while FilingStatus == 'single' and i < 2:
    if TIAD <= 9700:
        TaxRate = 0.1
    elif TIAD <= 39475:
        TaxRate = 0.12
    elif TIAD <= 84200:
        TaxRate = 0.22
    elif TIAD <= 160725:
        TaxRate = 0.24
    elif TIAD <= 204100:
        TaxRate = 0.32
    elif TIAD <= 510300:
        TaxRate = 0.35
    else:
        TaxRate = 0.37
    i += 1
while FilingStatus == 'married filing jointly' and i < 2:
    if TIAD <= 19400:
        TaxRate = 0.1
    elif TIAD <= 78950:
        TaxRate = 0.12
    elif TIAD <= 168400:
        TaxRate = 0.22
    elif TIAD <= 321450:
        TaxRate = 0.24
    elif TIAD <= 408200:
        TaxRate = 0.32
    elif TIAD <= 612350:
        TaxRate = 0.35
    else:
        TaxRate = 0.37
    i += 1
while FilingStatus == 'head of household' and i < 2:
    if TIAD <= 13850:
        TaxRate = 0.1
    elif TIAD <= 52850:
        TaxRate = 0.12
    elif TIAD <= 84200:
        TaxRate = 0.22
    elif TIAD <= 160700:
        TaxRate = 0.24
    elif TIAD <= 204100:
        TaxRate = 0.32
    elif TIAD <= 510300:
        TaxRate = 0.35
    else:
        TaxRate = 0.37
    i += 1
TaxesDue = TaxRate * TIAD
print('Your standard deduction amount is: ' + '${:,.2f}'.format(SD) +
    ' and your taxes due are ' + '${:,.2f}'.format(TaxesDue))

Taxrates = {
    "Single": float(12200.00),
    "Married Filing Jointly": float(24400.00),
    "Head of Household": float(18350.00)
    }

FilingStatus = str.lower((input("What is your filing status? (Single, Married Filing Jointly, or Head of Household?  ")))
if FilingStatus == "single":
     FilingStatusCheck = True
elif FilingStatus == "married filing jointly":
     FilingStatusCheck = True
elif FilingStatus == "head of household":
     FilingStatusCheck = True
else:
    print("Please enter a correct filing status.")
    import sys
    sys.exit()
    FilingStatusCheck = False

     
while FilingStatusCheck == True:
     try:
          TaxableIncomeBD=float(input("What is your taxable income?   "))
          TIBD = round(TaxableIncomeBD,2)
     except ValueError:
          print("You must enter a number.")
          continue
     if TaxableIncomeBD < 0:
          print("Your income cannot be a negative number.")
     else:
          break

if FilingStatus == "single":
    SD = Taxrates.get("Single")
elif FilingStatus == "married filing jointly":
    SD = Taxrates.get("Married Filing Jointly")      
else:
     SD = Taxrates.get("Head of Household")

TIAD = TIBD - SD


i = 1
while FilingStatus == "single" and i < 2:
     if TIAD <= 9700:
          TaxRate = .10
     elif TIAD <= 39475:
          TaxRate = .12
     elif TIAD <= 84200:
          TaxRate = .22
     elif TIAD <= 160725:
          TaxRate = .24
     elif TIAD <= 204100:
          TaxRate = .32
     elif TIAD <= 510300:
          TaxRate = .35
     else:
          TaxRate = .37
     i += 1

while FilingStatus == "married filing jointly" and i < 2:
     if TIAD <= 19400:
          TaxRate = .10
     elif TIAD <= 78950:
          TaxRate = .12
     elif TIAD <= 168400:
          TaxRate = .22
     elif TIAD <= 321450:
          TaxRate = .24
     elif TIAD <= 408200:
          TaxRate = .32
     elif TIAD <= 612350:
          TaxRate = .35
     else:
          TaxRate = .37
     i += 1

while FilingStatus == "head of household" and i < 2:
     if TIAD <= 13850:
          TaxRate = .10
     elif TIAD <= 52850:
          TaxRate = .12
     elif TIAD <= 84200:
          TaxRate = .22
     elif TIAD <= 160700:
          TaxRate = .24
     elif TIAD <= 204100:
          TaxRate = .32
     elif TIAD <= 510300:
          TaxRate = .35
     else:
          TaxRate = .37
     i += 1     


TaxesDue = TaxRate * TIAD
print("Your standard deduction amount is: "+"${:,.2f}".format(SD)+ " and your taxes due are "+"${:,.2f}".format(TaxesDue))
