Question: I keep getting an error, and I am not sure what it means or how to fix it in my Python code. Question 1(2.5 pts):
I keep getting an error, and I am not sure what it means or how to fix it in my Python code.


Question 1(2.5 pts): Estimate how much a worker will earn before retiring at age 65 (The worker will work when she is 65 , so she will earn money on that year as well). Ask the worker's name, age, and starting salary and the annual percentage rise to the user. Assume the salary will increase by same rate each year. An output Example: Enter name: Donald Enter starting sa7ary: 20000 Enter age: 25 Enter salary rise: 0.06 Donald wi11 earn about $3,300,953.67 H: Question One namesinput( "Enter name: ") startingSalary=eval (input("Enter starting salary: ")) ageseval (input ("Enter age: ")) salaryRiseseval(input("Enter salary rise: ")) for age in range (age,66) : startingSalapy =(1+ salaryRise ) *startingSalary finalSalary = startingsalary print(" \{\} will earn about ${0:,2f}. . format(name, finalSalary))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
