Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions questions/organizer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Kart Kourse

## Question

Welcome to **The event**! Here is the problem statement:

You are the organizer of an event, and you are handed the following list of people's ages for activites later:
```python
ages = [42, 17, 65, 32, 47, 76, 5, 13]
```
As the organizer, you must separate the group into three. Children under 18 and adults over 50 need to be in respective groups, and there must be a thrid group for all in between.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grammar: "thrid" -> "third"

In order to be an efficient organizer, you need to take two steps in order to complete this task.
- First, you must sort the list so that the ages are displayed in ascending order
- Second, you must split the list into the three age groups

Write a function(s) that will take in the list as an argument and then return the updated lists.

Sample solution:
```python
def listFunc(ages):
# make a loop that will fully sort through the loop

# use another method in order to split the list into three

# I wasnt able to finish the code lol
```