/**
 * This exercise requires you to iterate over a dictionary and find key-value pairs where the value is not equal to a specific value.
 * You need to complete the code to solve this task.
 *
 * @param dictionary A dictionary with key-value pairs.
 * @return A list of key-value pairs from the input dictionary where the value is not equal to 0.
 */
fun iterateOverNotEqual(dictionary: Map<String, Int>): List<Pair<String, Int>> {

    // Initialize an empty list to store key-value pairs
    val result = mutableListOf<Pair<String, Int>>()

    // Iterate over each key-value pair in the dictionary
    for ((key, value) in dictionary) {
        // Check if the value is not equal to 0
        if (value != 0) {
            // Append the key-value pair to the result list
            result.add(Pair(key, value))
        }
    }

    return result
}
/**
 * This exercise requires you to iterate over a dictionary and find key-value pairs where the value is not equal to a specific value.
 * You need to complete the code to solve this task.
 *
 * @param dictionary A dictionary with key-value pairs.
 * @return A list of key-value pairs from the input dictionary where the value is not equal to 0.
 */
fun iterateOverNotEqual(dictionary: Map<String, Int>): List<Pair<String, Int>> {
/**
 * This exercise requires you to iterate over a dictionary and find key-value pairs where the value is not equal to a specific value.
 * You need to complete the code to solve this task.
 *
 * @param dictionary A dictionary with key-value pairs.
 * @return A list of key-value pairs from the input dictionary where the value is not equal to 0.
 */
fun iterateOverNotEqual(dictionary: Map<String, Int>): List<Pair<String, Int>> {

    // Initialize an empty list to store key-value pairs
    val result = mutableListOf<Pair<String, Int>>()

    // Iterate over each key-value pair in the dictionary
    for ((key, value) in dictionary) {
        // Check if the value is not equal to 0
        if (value != 0) {
            // Append the key-value pair to the result list
            result.add(Pair(key, value))
        }
    }

    return result
}