Stuck on Boolean Logic | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Stuck on Boolean Logic

Hi I'm stuck on the: Given the age of a person as an input, output their age group. Here are the age groups you need to handle: Child: 0 to 11 Teen: 12 to 17 Adult: 18 to 64 My code is: age = int(input()) if age < 12: print("Childe") elif age < 18: print("Teen") elif age < 65: print("Adult") All the test cases were correct except for 4 and 5

19th Feb 2022, 10:27 PM
woopus
woopus - avatar
1 Answer
+ 6
Check your spelling of child – it must be exactly the same as in the task description
19th Feb 2022, 10:28 PM
Lisa
Lisa - avatar