0
(Solved)I'm sorry but can you still help me on Age Groups?
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 Sample Input 42 Sample Output Adult Remember, you can use the Boolean and operator to combine conditions, like x>0 and x<20. Here is my attempt: age = int(input()) if age >= 18 and age <= 65: print("Adult") ("Adult") Ps:i haven't solve this code for days please help me any hints,correction is helpful(test cases #2 and #6 are ticks btw)
2 Antworten
+ 5
Shah Johan
You need to review
if statement
output
elif statement
output
elif statement
output
This is a simple challenge and you have already done the difficult part.
+ 1
Rik Wittkopp
Thanks