/**
 * In this exercise, you need to create a triple containing the scientific name, common name, and
 * the number of individuals for a given species. The data will be extracted from a map
 * containing information about multiple species. You should then access specific map
 * entries using their keys and store them in the triple.
 *
 * @param speciesMap A map containing information about multiple species.
 * @return A triple containing the scientific name, common name, and number of individuals
 *         for a given species.
 */
fun getSpeciesData(speciesMap: Map<String, Any>): Triple<String, String, Int> {

    // Access the scientific name, common name, and number of individuals from the speciesMap
    val scientificName = speciesMap["scientific_name"] as String
    val commonName = speciesMap["common_name"] as String
    val numIndividuals = speciesMap["num_individuals"] as Int

    // Create a triple using the obtained values
    val speciesData = Triple(scientificName, commonName, numIndividuals)

    // Return the triple
    return speciesData
}
/**
 * In this exercise, you need to create a triple containing the scientific name, common name, and
 * the number of individuals for a given species. The data will be extracted from a map
 * containing information about multiple species. You should then access specific map
 * entries using their keys and store them in the triple.
 *
 * @param speciesMap A map containing information about multiple species.
 * @return A triple containing the scientific name, common name, and number of individuals
 *         for a given species.
 */
fun getSpeciesData(speciesMap: Map<String, Any>): Triple<String, String, Int> {
/**
 * In this exercise, you need to create a triple containing the scientific name, common name, and
 * the number of individuals for a given species. The data will be extracted from a map
 * containing information about multiple species. You should then access specific map
 * entries using their keys and store them in the triple.
 *
 * @param speciesMap A map containing information about multiple species.
 * @return A triple containing the scientific name, common name, and number of individuals
 *         for a given species.
 */
fun getSpeciesData(speciesMap: Map<String, Any>): Triple<String, String, Int> {

    // Access the scientific name, common name, and number of individuals from the speciesMap
    val scientificName = speciesMap["scientific_name"] as String
    val commonName = speciesMap["common_name"] as String
    val numIndividuals = speciesMap["num_individuals"] as Int

    // Create a triple using the obtained values
    val speciesData = Triple(scientificName, commonName, numIndividuals)

    // Return the triple
    return speciesData
}