/**
 * This function takes a list of animal populations in a zoo and divides each population by a given divisor.
 *
 * @param zooList A list of integers representing the animal populations in the zoo.
 * @param divisor An integer value to divide each animal population by.
 * @return A new list containing the modified animal populations after division.
 */
fun modifyList(zooList: List<Int>, divisor: Int): List<Double> {

    val modifiedList = mutableListOf<Double>()
    for (population in zooList) {
        val modifiedPopulation = population.toDouble() / divisor
        modifiedList.add(modifiedPopulation)
    }
    return modifiedList
}
/**
 * This function takes a list of animal populations in a zoo and divides each population by a given divisor.
 *
 * @param zooList A list of integers representing the animal populations in the zoo.
 * @param divisor An integer value to divide each animal population by.
 * @return A new list containing the modified animal populations after division.
 */
fun modifyList(zooList: List<Int>, divisor: Int): List<Double> {
/**
 * This function takes a list of animal populations in a zoo and divides each population by a given divisor.
 *
 * @param zooList A list of integers representing the animal populations in the zoo.
 * @param divisor An integer value to divide each animal population by.
 * @return A new list containing the modified animal populations after division.
 */
fun modifyList(zooList: List<Int>, divisor: Int): List<Double> {

    val modifiedList = mutableListOf<Double>()
    for (population in zooList) {
        val modifiedPopulation = population.toDouble() / divisor
        modifiedList.add(modifiedPopulation)
    }
    return modifiedList
}