/**
 * This function takes a start and end value as input, and creates a tuple
 * containing all the numbers within that range (both are included).
 *
 * Example:
 * createTupleFromRange(1, 5) should return (1, 2, 3, 4, 5)
 *
 * Complete the function to solve the exercise.
 */
fun createTupleFromRange(start: Int, end: Int): List<Int>? {

    // Ensure valid input
    if (start !is Int || end !is Int || start > end) {
        return null
    }

    // Use a list comprehension to create the tuple
    val result = (start..end).toList()

    return result
}
/**
 * This function takes a start and end value as input, and creates a tuple
 * containing all the numbers within that range (both are included).
 *
 * Example:
 * createTupleFromRange(1, 5) should return (1, 2, 3, 4, 5)
 *
 * Complete the function to solve the exercise.
 */
fun createTupleFromRange(start: Int, end: Int): List<Int>? {
/**
 * This function takes a start and end value as input, and creates a tuple
 * containing all the numbers within that range (both are included).
 *
 * Example:
 * createTupleFromRange(1, 5) should return (1, 2, 3, 4, 5)
 *
 * Complete the function to solve the exercise.
 */
fun createTupleFromRange(start: Int, end: Int): List<Int>? {

    // Ensure valid input
    if (start !is Int || end !is Int || start > end) {
        return null
    }

    // Use a list comprehension to create the tuple
    val result = (start..end).toList()

    return result
}