/**
 * Given a tuple containing the dancer's name, age, and style,
 * return the information in a formatted string.
 *
 * @param dancerInfo a tuple in the format (name: String, age: Int, style: String)
 * @return A formatted string containing the dancer's information in the format:
 * "Name: [dancerName], Age: [dancerAge], Style: [dancerStyle]"
 */
fun getDancerInfo(dancerInfo: Triple<String, Int, String>): String {

    val (dancerName, dancerAge, dancerStyle) = dancerInfo

    // Check if dancerName, dancerAge, and dancerStyle are strings and non-empty
    if (dancerName.isNotBlank() && dancerAge is Int && dancerStyle.isNotBlank()) {
        // Check if dancerAge is a valid age (between 1 and 100)
        if (dancerAge in 1..100) {
            return "Name: $dancerName, Age: $dancerAge, Style: $dancerStyle"
        } else {
            return "Invalid age! Please provide a valid age between 1 and 100."
        }
    }
    return "Invalid dancer information provided."
}
/**
 * Given a tuple containing the dancer's name, age, and style,
 * return the information in a formatted string.
 *
 * @param dancerInfo a tuple in the format (name: String, age: Int, style: String)
 * @return A formatted string containing the dancer's information in the format:
 * "Name: [dancerName], Age: [dancerAge], Style: [dancerStyle]"
 */
fun getDancerInfo(dancerInfo: Triple<String, Int, String>): String {
/**
 * Given a tuple containing the dancer's name, age, and style,
 * return the information in a formatted string.
 *
 * @param dancerInfo a tuple in the format (name: String, age: Int, style: String)
 * @return A formatted string containing the dancer's information in the format:
 * "Name: [dancerName], Age: [dancerAge], Style: [dancerStyle]"
 */
fun getDancerInfo(dancerInfo: Triple<String, Int, String>): String {

    val (dancerName, dancerAge, dancerStyle) = dancerInfo

    // Check if dancerName, dancerAge, and dancerStyle are strings and non-empty
    if (dancerName.isNotBlank() && dancerAge is Int && dancerStyle.isNotBlank()) {
        // Check if dancerAge is a valid age (between 1 and 100)
        if (dancerAge in 1..100) {
            return "Name: $dancerName, Age: $dancerAge, Style: $dancerStyle"
        } else {
            return "Invalid age! Please provide a valid age between 1 and 100."
        }
    }
    return "Invalid dancer information provided."
}