← Back to If Statements
Question 229
Teenager Check
Teenager Check
Read an age and print Teenager when it is from 13 to 19 inclusive, otherwise Not a teenager. Use the chained comparison 13 <= age <= 19, which Python reads as both limits at once. Input: one integer, no prompt. Output: one line.
Expected Output:
Teenager= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
If StatementsOperators
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.