/**
 * Create a dictionary of dancers' information using nested dictionaries and loops.
 *
 * @param names A list of strings representing the names of the dancers.
 * @param ages A list of integers representing the ages of the dancers.
 * @param countries A list of strings representing the countries of the dancers.
 * @return A nested dictionary containing the dancers' information.
 */
fun createDancerInfo(names: List<String>, ages: List<Int>, countries: List<String>): Map<String, Map<String, Any>> {

    val dancerInfo = mutableMapOf<String, MutableMap<String, Any>>()

    for (i in names.indices) {
        val dancerName = names[i]
        val dancerAge = ages[i]
        val dancerCountry = countries[i]

        dancerInfo[dancerName] = mutableMapOf(
            "age" to dancerAge,
            "country" to dancerCountry
        )
    }

    return dancerInfo
}
/**
 * Create a dictionary of dancers' information using nested dictionaries and loops.
 *
 * @param names A list of strings representing the names of the dancers.
 * @param ages A list of integers representing the ages of the dancers.
 * @param countries A list of strings representing the countries of the dancers.
 * @return A nested dictionary containing the dancers' information.
 */
fun createDancerInfo(names: List<String>, ages: List<Int>, countries: List<String>): Map<String, Map<String, Any>> {
/**
 * Create a dictionary of dancers' information using nested dictionaries and loops.
 *
 * @param names A list of strings representing the names of the dancers.
 * @param ages A list of integers representing the ages of the dancers.
 * @param countries A list of strings representing the countries of the dancers.
 * @return A nested dictionary containing the dancers' information.
 */
fun createDancerInfo(names: List<String>, ages: List<Int>, countries: List<String>): Map<String, Map<String, Any>> {

    val dancerInfo = mutableMapOf<String, MutableMap<String, Any>>()

    for (i in names.indices) {
        val dancerName = names[i]
        val dancerAge = ages[i]
        val dancerCountry = countries[i]

        dancerInfo[dancerName] = mutableMapOf(
            "age" to dancerAge,
            "country" to dancerCountry
        )
    }

    return dancerInfo
}