/**
 * Given a list of tuples representing nurses' information,
 * including their names, ages, and years of experience,
 * iterate over the list, extract the relevant information
 * for each nurse, and perform the specified action.
 *
 * @param nurses A list of tuples, where each tuple represents
 * a nurse's information. Each tuple contains
 * three elements: name (String), age (Int), and
 * experience (Int).
 *
 * @return A list of nurse names extracted from the input tuples.
 */
fun iterateTuples(nurses: List<Triple<String, Int, Int>>): List<String> {

    // Initialize an empty list to store the names of nurses
    val nurseNames = mutableListOf<String>()

    // Iterate over each tuple in the nurses list
    for (nurse in nurses) {
        // Extract the name, age, and experience from the tuple
        val (name, _, _) = nurse

        // Perform the specified action
        // (Note: The specified action is left blank on purpose,
        // as this is the part the user should complete)

        // Add the name to the nurseNames list
        // (Note: Append the name provided by the user here)
        nurseNames.add(name)
    }

    // Return the final list of nurse names
    return nurseNames
}
/**
 * Given a list of tuples representing nurses' information,
 * including their names, ages, and years of experience,
 * iterate over the list, extract the relevant information
 * for each nurse, and perform the specified action.
 *
 * @param nurses A list of tuples, where each tuple represents
 * a nurse's information. Each tuple contains
 * three elements: name (String), age (Int), and
 * experience (Int).
 *
 * @return A list of nurse names extracted from the input tuples.
 */
fun iterateTuples(nurses: List<Triple<String, Int, Int>>): List<String> {
/**
 * Given a list of tuples representing nurses' information,
 * including their names, ages, and years of experience,
 * iterate over the list, extract the relevant information
 * for each nurse, and perform the specified action.
 *
 * @param nurses A list of tuples, where each tuple represents
 * a nurse's information. Each tuple contains
 * three elements: name (String), age (Int), and
 * experience (Int).
 *
 * @return A list of nurse names extracted from the input tuples.
 */
fun iterateTuples(nurses: List<Triple<String, Int, Int>>): List<String> {

    // Initialize an empty list to store the names of nurses
    val nurseNames = mutableListOf<String>()

    // Iterate over each tuple in the nurses list
    for (nurse in nurses) {
        // Extract the name, age, and experience from the tuple
        val (name, _, _) = nurse

        // Perform the specified action
        // (Note: The specified action is left blank on purpose,
        // as this is the part the user should complete)

        // Add the name to the nurseNames list
        // (Note: Append the name provided by the user here)
        nurseNames.add(name)
    }

    // Return the final list of nurse names
    return nurseNames
}