0 out of 68 challenges solved

**Question:**

Write a function called `sort_students`

that takes a list of dictionaries representing students as input and returns a new list with the students sorted in ascending order based on their age. Use a while loop to iterate through each element in the list and perform the sorting using the `key`

argument.

**Example:**

Input:

[

{"name": "Alice", "age": 20},

{"name": "Bob", "age": 18},

{"name": "Charlie", "age": 22}

]

Output:

[

{"name": "Bob", "age": 18},

{"name": "Alice", "age": 20},

{"name": "Charlie", "age": 22}

]

def sort_students(students): """ Sorts the given list of student dictionaries in ascending order based on their age. Args: students (list): The input list of student dictionaries. Returns: list: A new list with the students sorted based on their age. """ # TODO: Implement the sort_students function pass

- Count the frequency of each element in the given list
- Count the number of odd numbers in a given list
- Count the number of vowels in a given string
- Find numbers that are divisible by 3 but not a multiple of 7
- Calculate the exponential power of the given number
- Calculate the factorial of the given number
- Double each number in a list
- Order a list of strings in alphabetical order
- Multiply each element in a list by its index
- Calculate the product of all elements in the given list
- Calculate the square root of each element in the given list
- Reverse characters in a string
- Calculate the sum of squares of all elements in the given list