Challenge: Age Group Categorizer
Завдання
Swipe to start coding
Write a function that determines the age group for a given age using nested if statements.
- Return "Child" if the age is less than 13.
- Return "Teenager" if the age is 13 or greater but less than 20.
- Return "Adult" if the age is 20 or greater but less than 65.
- Return "Senior" if the age is 65 or older.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 4
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Чудово!
Completion показник покращився до 5.56
Challenge: Age Group Categorizer
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Write a function that determines the age group for a given age using nested if statements.
- Return "Child" if the age is less than 13.
- Return "Teenager" if the age is 13 or greater but less than 20.
- Return "Adult" if the age is 20 or greater but less than 65.
- Return "Senior" if the age is 65 or older.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 4
single