← Back to User Input
Question 181
Dog Years
Dog Years
Ask for a dog's age with the prompt Dog age? (space after the question mark), convert it with int(), multiply by 7 and print That is <value> in human years. Input: one line, an integer. The prompt is part of the output and input() does not move to a new line, so the prompt and the sentence share one output line.
Expected Output:
Dog age? That is 21 in human years.= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
User Input
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.