/**
 * This function takes a list of animals and an animal type as input, and prints the population of that animal type.
 *
 * @param animalList A list of dictionaries, each representing an animal with 'name' and 'population' keys.
 * @param animalType The type of animal for which the population needs to be printed.
 */
fun printAnimalPopulation(animalList: List<Map<String, Any>>, animalType: String) {

    var population = 0

    for (animal in animalList) {
        if (animal["name"] == animalType) {
            population = animal["population"] as Int
            break
        }
    }

    println("The population of $animalType is $population.")
}
/**
 * This function takes a list of animals and an animal type as input, and prints the population of that animal type.
 *
 * @param animalList A list of dictionaries, each representing an animal with 'name' and 'population' keys.
 * @param animalType The type of animal for which the population needs to be printed.
 */
fun printAnimalPopulation(animalList: List<Map<String, Any>>, animalType: String) {
/**
 * This function takes a list of animals and an animal type as input, and prints the population of that animal type.
 *
 * @param animalList A list of dictionaries, each representing an animal with 'name' and 'population' keys.
 * @param animalType The type of animal for which the population needs to be printed.
 */
fun printAnimalPopulation(animalList: List<Map<String, Any>>, animalType: String) {

    var population = 0

    for (animal in animalList) {
        if (animal["name"] == animalType) {
            population = animal["population"] as Int
            break
        }
    }

    println("The population of $animalType is $population.")
}