CJCoding With Joseph
15free / daySign inCreate account

Ten Years From Now

Ask for a name with the prompt Name? and an age with Age? (each ending in a space), convert the age with int(), and print three lines: <name> is <age>., Next year: <age plus 1> and In ten years: <age plus 10>. Input: two lines, a name then an integer. The prompts are part of the output and input() does not add a newline, so both prompts and the first sentence share the first output line, as shown in Expected Output.

Expected Output:

Name? Age? Maya is 19.
Next year: 20
In ten years: 29

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
User Input
📥 Auto-Input:
Maya\n19\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.