0 out of 68 challenges solved

**Question:**

Write a function called `reverse_string`

that takes a string as input and returns a new string with the characters reversed. Use a while loop to iterate through each character in the string and perform the reversal.

**Example:**

Input: "Hello, World!"

Output: "!dlroW ,olleH"

def reverse_string(string): """ Reverses the characters in the given string. Args: string (str): The input string. Returns: str: A new string with the characters reversed. """ # TODO: Implement the reverse_string 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
- Sort students by age
- 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
- Calculate the sum of squares of all elements in the given list