CJCoding With Joseph
15free / daySign inCreate account

Old Enough To Vote

From the declared age, print two lines of output, each a label, a colon and a space followed by the result of a comparison: Can vote followed by whether the age is greater than 17, and Teenager followed by whether the age is less than 20. Pass the label and the comparison as two values to each print call; the comparison prints as True or False. Input: none; the value is fixed in the code.

Expected Output:

Can vote: False
Teenager: True

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

Hints2 available
Topics:
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.