/**
 * This exercise requires creating a tuple from a given string and using the range function to append a list to the tuple.
 * The string can contain multiple words separated by spaces. The range function will generate a list of numbers, which will then be added as an element to the tuple.
 * The final output will be a tuple containing the words from the string and the generated list.
 */
fun createTupleFromStringAndUseRangeFunction(string: String, start: Int, end: Int): Pair<List<String>, List<Int>> {

    val words = string.split(" ") // Split the string into a list of words
    val numbers = (start until end).toList() // Generate a list of numbers using the range function

    // Append the list of numbers to the words list
    val resultWords = words.toMutableList()
    resultWords.addAll(numbers.map { it.toString() })

    return Pair(resultWords, numbers)
}
/**
 * This exercise requires creating a tuple from a given string and using the range function to append a list to the tuple.
 * The string can contain multiple words separated by spaces. The range function will generate a list of numbers, which will then be added as an element to the tuple.
 * The final output will be a tuple containing the words from the string and the generated list.
 */
fun createTupleFromStringAndUseRangeFunction(string: String, start: Int, end: Int): Pair<List<String>, List<Int>> {
/**
 * This exercise requires creating a tuple from a given string and using the range function to append a list to the tuple.
 * The string can contain multiple words separated by spaces. The range function will generate a list of numbers, which will then be added as an element to the tuple.
 * The final output will be a tuple containing the words from the string and the generated list.
 */
fun createTupleFromStringAndUseRangeFunction(string: String, start: Int, end: Int): Pair<List<String>, List<Int>> {

    val words = string.split(" ") // Split the string into a list of words
    val numbers = (start until end).toList() // Generate a list of numbers using the range function

    // Append the list of numbers to the words list
    val resultWords = words.toMutableList()
    resultWords.addAll(numbers.map { it.toString() })

    return Pair(resultWords, numbers)
}