/**
 * Create a tuple containing even numbers within a given range, using the range function.
 *
 * @param rangeStart Start value of the range.
 * @param rangeEnd End value of the range.
 * @return Tuple containing even numbers within the range.
 *
 * Example:
 * createEvenTuple(3, 10) -> (4, 6, 8)
 */
fun createEvenTuple(rangeStart: Int, rangeEnd: Int): List<Int> {

    // Initialize an empty list to store even numbers
    val evenNumbers = mutableListOf<Int>()

    // Iterate over the range from rangeStart to rangeEnd (exclusive)
    for (number in rangeStart until rangeEnd) {
        // Check if the number is even
        if (number % 2 == 0) {
            // Append the even number to the list
            evenNumbers.add(number)
        }
    }

    return evenNumbers
}
/**
 * Create a tuple containing even numbers within a given range, using the range function.
 *
 * @param rangeStart Start value of the range.
 * @param rangeEnd End value of the range.
 * @return Tuple containing even numbers within the range.
 *
 * Example:
 * createEvenTuple(3, 10) -> (4, 6, 8)
 */
fun createEvenTuple(rangeStart: Int, rangeEnd: Int): List<Int> {
/**
 * Create a tuple containing even numbers within a given range, using the range function.
 *
 * @param rangeStart Start value of the range.
 * @param rangeEnd End value of the range.
 * @return Tuple containing even numbers within the range.
 *
 * Example:
 * createEvenTuple(3, 10) -> (4, 6, 8)
 */
fun createEvenTuple(rangeStart: Int, rangeEnd: Int): List<Int> {

    // Initialize an empty list to store even numbers
    val evenNumbers = mutableListOf<Int>()

    // Iterate over the range from rangeStart to rangeEnd (exclusive)
    for (number in rangeStart until rangeEnd) {
        // Check if the number is even
        if (number % 2 == 0) {
            // Append the even number to the list
            evenNumbers.add(number)
        }
    }

    return evenNumbers
}