/**
 * This exercise aims to test your understanding of accessing values in a dictionary and using conditional statements.
 *
 * Given a dictionary and a condition, your task is to complete the code to retrieve all the values from the dictionary that meet the given condition.
 *
 * @param dictionary A dictionary with string keys and integer values.
 * @param condition A boolean value determining the condition to be met.
 * @return A list of values from the dictionary that satisfy the given condition.
 */
fun accessingValues(dictionary: Map<String, Int>, condition: Boolean): List<Int> {

    val result = mutableListOf<Int>()

    // Iterate through each key-value pair in the dictionary
    for ((_, value) in dictionary) {
        // Check if the condition is True or False
        if (condition) {
            // Add value to the result list if the condition is True
            result.add(value)
        } else {
            // Add value to the result list if the condition is False
            // No action needed
        }
    }

    return result
}
/**
 * This exercise aims to test your understanding of accessing values in a dictionary and using conditional statements.
 *
 * Given a dictionary and a condition, your task is to complete the code to retrieve all the values from the dictionary that meet the given condition.
 *
 * @param dictionary A dictionary with string keys and integer values.
 * @param condition A boolean value determining the condition to be met.
 * @return A list of values from the dictionary that satisfy the given condition.
 */
fun accessingValues(dictionary: Map<String, Int>, condition: Boolean): List<Int> {
/**
 * This exercise aims to test your understanding of accessing values in a dictionary and using conditional statements.
 *
 * Given a dictionary and a condition, your task is to complete the code to retrieve all the values from the dictionary that meet the given condition.
 *
 * @param dictionary A dictionary with string keys and integer values.
 * @param condition A boolean value determining the condition to be met.
 * @return A list of values from the dictionary that satisfy the given condition.
 */
fun accessingValues(dictionary: Map<String, Int>, condition: Boolean): List<Int> {

    val result = mutableListOf<Int>()

    // Iterate through each key-value pair in the dictionary
    for ((_, value) in dictionary) {
        // Check if the condition is True or False
        if (condition) {
            // Add value to the result list if the condition is True
            result.add(value)
        } else {
            // Add value to the result list if the condition is False
            // No action needed
        }
    }

    return result
}