The program below is designed to ask a user their age and then print how old the user will be in ten years, along with the year itself. It will next print how old the user is in twenty years, along with that year. Next, it should double the user's age and print that value. Finally, it should calculate the year in which the user will be twice as old as he or she is currently (by adding the current age to the current year).

The program is not working as expected. Use the following steps to debug the program using the debugger:

At the top, where shown by the comment, add an import statement to bring in the Python debugger (pdf).
Under the import statement, add a pdb.set_trace() method to set a breakpoint.
When you run the program, it should now pause before the first statement and allow you to use the debugger commands. Use the debugger to study the program flow and variable contents. Fix all errors so the program works as expected. You must leave the debugger import and breakpoint statements in your code when you Preview or Submit!

The following examples demonstrate the expected program output (assuming the user hits "c" immediately in the debugger to continue the program).

> /home/p15707/code1.py(4)()
-> age = int(input("How old are you? "))
(Pdb) c
How old are you? 20
What year is it? 2023
You will be 30 years old in 2033
You will be 40 years old in 2043
Twice your age is 40 years old
You will be twice as old in 2043
> /home/p13901/code1.py(4)()
-%gt; age = int(input("How old are you? "))
(Pdb) c
How old are you? 15
What year is it? 2025
You will be 25 years old in 2035
You will be 35 years old in 2045
Twice your age is 30 years old
You will be twice as old in 2040
The details of the first debugger line of output (e.g. /home/p13901/code1.py(4)) will change on each program run.

#import the debugger and set a breakpoint

age = int(input("How old are you? "))
year = int(input("What year is it? "))

tenAge = age + 10
tenYears = year + 10
print("You will be", tenAge, "years old in", tenYears)

twentyYears = age + 20
twentyAge = year + 20
print("You will be", twentyAge, "years old in", twentyYears)

twiceAge = age * 2
twiceYears = year * age
print("Twice your age is", twiceAge, "years old")
print("You will be twice as old in", twiceYears)

import pdb

# Set a breakpoint
pdb.set_trace()

age = int(input("How old are you? "))
year = int(input("What year is it? "))

tenAge = age + 10
tenYears = year + 10
print("You will be", tenAge, "years old in", tenYears)

twentyYears = age + 20
twentyAge = year + 20
print("You will be", twentyAge, "years old in", twentyYears)

twiceAge = age * 2
twiceYears = year + age
print("Twice your age is", twiceAge, "years old")
print("You will be twice as old in", twiceYears)