From 149d274231fea98c0c4a33d922f3bf59b123e05e Mon Sep 17 00:00:00 2001 From: "Marcel C." <46693356+Martzle@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:44:48 +0000 Subject: [PATCH] question --- questions/organizer.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 questions/organizer.md diff --git a/questions/organizer.md b/questions/organizer.md new file mode 100644 index 0000000..ed22b5b --- /dev/null +++ b/questions/organizer.md @@ -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. +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 +``` \ No newline at end of file