/**
 * This exercise requires creating a tuple from a range of values and checking if it is equal to a given athlete's attributes.
 *
 * @param start an integer representing the starting value of the range.
 * @param stop an integer representing the stopping value of the range.
 * @param athlete an Athlete object.
 *
 * @return True if the tuple created from the range is equal to the athlete's name and age, otherwise False.
 *
 * Example usage:
 * val athlete = Athlete("John", 25)
 * val result = createTupleFromRangeAndCheckEquality(1, 5, athlete)
 * println(result)  // Output: true (The tuple (1, 2, 3, 4) is equal to "John" and 25)
 */
fun createTupleFromRangeAndCheckEquality(start: Int, stop: Int, athlete: Athlete): Boolean {

    // Creating the tuple from the range
    val tupleFromRange = (start until stop).toList()

    // Checking if the tuple is equal to the athlete's attributes
    return tupleFromRange == listOf(athlete.name, athlete.age)
}

data class Athlete(val name: String, val age: Int)
/**
 * This exercise requires creating a tuple from a range of values and checking if it is equal to a given athlete's attributes.
 *
 * @param start an integer representing the starting value of the range.
 * @param stop an integer representing the stopping value of the range.
 * @param athlete an Athlete object.
 *
 * @return True if the tuple created from the range is equal to the athlete's name and age, otherwise False.
 *
 * Example usage:
 * val athlete = Athlete("John", 25)
 * val result = createTupleFromRangeAndCheckEquality(1, 5, athlete)
 * println(result)  // Output: true (The tuple (1, 2, 3, 4) is equal to "John" and 25)
 */
fun createTupleFromRangeAndCheckEquality(start: Int, stop: Int, athlete: Athlete): Boolean {
/**
 * This exercise requires creating a tuple from a range of values and checking if it is equal to a given athlete's attributes.
 *
 * @param start an integer representing the starting value of the range.
 * @param stop an integer representing the stopping value of the range.
 * @param athlete an Athlete object.
 *
 * @return True if the tuple created from the range is equal to the athlete's name and age, otherwise False.
 *
 * Example usage:
 * val athlete = Athlete("John", 25)
 * val result = createTupleFromRangeAndCheckEquality(1, 5, athlete)
 * println(result)  // Output: true (The tuple (1, 2, 3, 4) is equal to "John" and 25)
 */
fun createTupleFromRangeAndCheckEquality(start: Int, stop: Int, athlete: Athlete): Boolean {

    // Creating the tuple from the range
    val tupleFromRange = (start until stop).toList()

    // Checking if the tuple is equal to the athlete's attributes
    return tupleFromRange == listOf(athlete.name, athlete.age)
}

data class Athlete(val name: String, val age: Int)