Can Abel Play?
Python
15 pts
Can Abel Play?
Abel wants to join the under-17 football team in Keren. The rules are: age from 12 to 16, permission from a parent, and not injured.
- Create
right_ageusingand: age is at least 12 and at most 16. - Create
can_play:right_ageandhas_permissionand notis_injured. - Print both.
Expected output:
True True
Checklist
- Keep the given values and create
right_agewithand(age 12 to 16). - Create
can_playfromright_age,has_permissionandis_injured. - Print
right_age, thencan_play.
🔑 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.
