/**
 * Given a list of dancers, find the average age of all the dancers.
 *
 * @param dancers A list of dictionaries containing information about each dancer, such as 'name' and 'age'.
 * @return The average age of all the dancers.
 */
fun getAverageAge(dancers: List<Map<String, Any>>): Double {

    var totalAge = 0
    for (dancer in dancers) {
        totalAge += dancer["age"] as Int
    }
    return totalAge.toDouble() / dancers.size
}
/**
 * Given a list of dancers, find the average age of all the dancers.
 *
 * @param dancers A list of dictionaries containing information about each dancer, such as 'name' and 'age'.
 * @return The average age of all the dancers.
 */
fun getAverageAge(dancers: List<Map<String, Any>>): Double {
/**
 * Given a list of dancers, find the average age of all the dancers.
 *
 * @param dancers A list of dictionaries containing information about each dancer, such as 'name' and 'age'.
 * @return The average age of all the dancers.
 */
fun getAverageAge(dancers: List<Map<String, Any>>): Double {

    var totalAge = 0
    for (dancer in dancers) {
        totalAge += dancer["age"] as Int
    }
    return totalAge.toDouble() / dancers.size
}