True or False?
Python
15 pts
True or False?
Given age = 20:
- Create
is_adultthat isTruewhenageis 18 or more. Use a comparison — do not just typeTrue. - Print
is_adult. - Print
bool(0). - Print
bool("hello").
Expected output:
True False True
Checklist
- Keep
age = 20. - Create
is_adultwith a comparison that isTruewhenageis 18 or more. - Print
is_adult, thenbool(0), thenbool("hello").
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
