/**
 * Create a tuple of three elements named 'dancer' with the provided 'name'.
 *
 * Use the 'in' operator and check if the 'name' appears in the 'dancer' tuple.
 * If it does, print 'The name is in the tuple!'. Otherwise, print 'The name is not in the tuple!'.
 *
 * Finally, return the 'dancer' tuple.
 *
 * Example:
 * dancerTuple("Alice")
 * Output:
 * The name is in the tuple!
 * ("Alice", "Dancer", 25)
 */
fun dancerTuple(name: String): Triple<String, String, Int> {

    // Create a tuple named 'dancer' with elements (name, occupation, age)
    val dancer = Triple(name, "Dancer", 25)

    // Check if the 'name' appears in the 'dancer' tuple using the 'in' operator
    if (name in dancer.toList()) {
        println("The name is in the tuple!")
    } else {
        println("The name is not in the tuple!")
    }

    // Return the 'dancer' tuple
    return dancer
}
/**
 * Create a tuple of three elements named 'dancer' with the provided 'name'.
 *
 * Use the 'in' operator and check if the 'name' appears in the 'dancer' tuple.
 * If it does, print 'The name is in the tuple!'. Otherwise, print 'The name is not in the tuple!'.
 *
 * Finally, return the 'dancer' tuple.
 *
 * Example:
 * dancerTuple("Alice")
 * Output:
 * The name is in the tuple!
 * ("Alice", "Dancer", 25)
 */
fun dancerTuple(name: String): Triple<String, String, Int> {
/**
 * Create a tuple of three elements named 'dancer' with the provided 'name'.
 *
 * Use the 'in' operator and check if the 'name' appears in the 'dancer' tuple.
 * If it does, print 'The name is in the tuple!'. Otherwise, print 'The name is not in the tuple!'.
 *
 * Finally, return the 'dancer' tuple.
 *
 * Example:
 * dancerTuple("Alice")
 * Output:
 * The name is in the tuple!
 * ("Alice", "Dancer", 25)
 */
fun dancerTuple(name: String): Triple<String, String, Int> {

    // Create a tuple named 'dancer' with elements (name, occupation, age)
    val dancer = Triple(name, "Dancer", 25)

    // Check if the 'name' appears in the 'dancer' tuple using the 'in' operator
    if (name in dancer.toList()) {
        println("The name is in the tuple!")
    } else {
        println("The name is not in the tuple!")
    }

    // Return the 'dancer' tuple
    return dancer
}