/**
 * Given a dictionary of species and their characteristics, create a tuple using parentheses that contains the species name and the number of occurrences in the wild.
 *
 * @param speciesDict A dictionary where the keys are species names (strings) and the values are lists of characteristics (strings).
 * @return A tuple containing species name (string) and occurrence count (integer).
 */
fun createSpeciesTuple(speciesDict: Map<String, List<String>>): List<Pair<String, Int>> {

    val speciesTuples = mutableListOf<Pair<String, Int>>()

    for ((speciesName, characteristics) in speciesDict) {
        var speciesCount = 0

        for (characteristic in characteristics) {
            if ("wild" in characteristic) {
                speciesCount++
            }
        }

        val speciesTuple = Pair(speciesName, speciesCount)
        speciesTuples.add(speciesTuple)
    }

    return speciesTuples
}
/**
 * Given a dictionary of species and their characteristics, create a tuple using parentheses that contains the species name and the number of occurrences in the wild.
 *
 * @param speciesDict A dictionary where the keys are species names (strings) and the values are lists of characteristics (strings).
 * @return A tuple containing species name (string) and occurrence count (integer).
 */
fun createSpeciesTuple(speciesDict: Map<String, List<String>>): List<Pair<String, Int>> {
/**
 * Given a dictionary of species and their characteristics, create a tuple using parentheses that contains the species name and the number of occurrences in the wild.
 *
 * @param speciesDict A dictionary where the keys are species names (strings) and the values are lists of characteristics (strings).
 * @return A tuple containing species name (string) and occurrence count (integer).
 */
fun createSpeciesTuple(speciesDict: Map<String, List<String>>): List<Pair<String, Int>> {

    val speciesTuples = mutableListOf<Pair<String, Int>>()

    for ((speciesName, characteristics) in speciesDict) {
        var speciesCount = 0

        for (characteristic in characteristics) {
            if ("wild" in characteristic) {
                speciesCount++
            }
        }

        val speciesTuple = Pair(speciesName, speciesCount)
        speciesTuples.add(speciesTuple)
    }

    return speciesTuples
}