/**
 * As an anthropologist, you have conducted extensive research on different cultures.
 * You have compiled a list of tribes and their respective rituals.
 * Your task is to print each tribe's rituals using nested loops in Kotlin.
 */
fun printResearchFindings() {

    val ritualList = listOf(
        mapOf("tribe" to "A", "rituals" to listOf("ritual 1", "ritual 2", "ritual 3")),
        mapOf("tribe" to "B", "rituals" to listOf("ritual A", "ritual B")),
        mapOf("tribe" to "C", "rituals" to listOf("ritual X", "ritual Y", "ritual Z"))
    )

    // Iterate over each tribe
    for (tribeInfo in ritualList) {
        val tribe = tribeInfo["tribe"] as String
        val rituals = tribeInfo["rituals"] as List<String>

        println("Tribe: $tribe")

        // Iterate over each ritual within the tribe
        for (ritual in rituals) {
            println("Ritual: $ritual")

            // Nested loop: iterate over each character of the ritual
            for (char in ritual) {
                // Perform operations on each character if needed
            }
        }
    }
}
/**
 * As an anthropologist, you have conducted extensive research on different cultures.
 * You have compiled a list of tribes and their respective rituals.
 * Your task is to print each tribe's rituals using nested loops in Kotlin.
 */
fun printResearchFindings() {
/**
 * As an anthropologist, you have conducted extensive research on different cultures.
 * You have compiled a list of tribes and their respective rituals.
 * Your task is to print each tribe's rituals using nested loops in Kotlin.
 */
fun printResearchFindings() {

    val ritualList = listOf(
        mapOf("tribe" to "A", "rituals" to listOf("ritual 1", "ritual 2", "ritual 3")),
        mapOf("tribe" to "B", "rituals" to listOf("ritual A", "ritual B")),
        mapOf("tribe" to "C", "rituals" to listOf("ritual X", "ritual Y", "ritual Z"))
    )

    // Iterate over each tribe
    for (tribeInfo in ritualList) {
        val tribe = tribeInfo["tribe"] as String
        val rituals = tribeInfo["rituals"] as List<String>

        println("Tribe: $tribe")

        // Iterate over each ritual within the tribe
        for (ritual in rituals) {
            println("Ritual: $ritual")

            // Nested loop: iterate over each character of the ritual
            for (char in ritual) {
                // Perform operations on each character if needed
            }
        }
    }
}