← Back to Printing
Question 62
Maths Inside The Braces
Maths Inside The Braces
Print one line of output saying that next year the declared person will be one year older than the declared age, ending with a full stop. Do the addition inside the curly braces of the f-string rather than creating a new variable. Input: none; the values are fixed in the code.
Expected Output:
Next year Giselle will be 22.= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Printing
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.