Switched everything out and the code works as long as I don't put in a . if i do i get this error
Traceback (most recent call last):
File "C:\Users\BlackPearl\Desktop\Project one\final.py", line 4, in <module>
t[0] = int(input ("Wages, salaries, and tips. This should be shown in box 1 of your Forms(s)W-2. Attach your Form(s) W-2."))
ValueError: invalid literal for int() with base 10: '100050.00'
Here is the code
I changed it to float instead of int and that seems to have fixed the . issue. Thanks so much for the help
Traceback (most recent call last):
File "C:\Users\BlackPearl\Desktop\Project one\final.py", line 4, in <module>
t[0] = int(input ("Wages, salaries, and tips. This should be shown in box 1 of your Forms(s)W-2. Attach your Form(s) W-2."))
ValueError: invalid literal for int() with base 10: '100050.00'
Here is the code
print("Welcome to the 1040EZ Tax Form Application") t = ["","",""] x = [""] t[0] = int(input ("Wages, salaries, and tips. This should be shown in box 1 of your Forms(s)W-2. Attach your Form(s) W-2.")) t[1] = int(input ("Taxable interest.")) t[2] = int(input ("Unemployment compensation and Alaska Permanent Fund dividends.")) t4 = print("Add lines 1, 2, and 3. This is your adjusted gross income.", + t[0] + t[1] + t[2]) x = 10150 t = t[0] + t[1] + t[2] - x print("If no one can claim you (or your spouse if a joint return), enter $10,150 if single; $20,300 if married filing jointly. See back for explanation.", x) print("Subtract line 5 from line 4.", t) z = ["",""] z[0] = int(input ("Federal income tax withheld from Form(s) W-2 and 1040.")) z[1] = int(input ("Earned income credit (EIC)")) print('Add lines 7 and 8. These are your total payments and credits. {}'. format(+ z[0] + z[1])) b = [""] b[0] = t * 0.02 print("Tax. Multiply Line 6 by 0.15.", b) d = [""] d[0] = int(input ("Health care: individual responsibility")) c = [""] c[0] = print("Add lines 10 and 11. This is your total tax.", b[0] + d[0]) print("If line 9 is larger than line 12, subtract line 12 from line 9. This is your refund.")update:
I changed it to float instead of int and that seems to have fixed the . issue. Thanks so much for the help