/**
 * Given a dictionary and a list of keys,
 * check if all the keys are present in the dictionary.
 *
 * @param dictionary The dictionary to check for key presence.
 * @param keyList The list of keys to check.
 * @return True if all the keys are present, False otherwise.
 *
 * Example usage:
 * val dictionary = mapOf("a" to 1, "b" to 2, "c" to 3)
 * val keys = listOf("a", "b", "c")
 * checkDictKeys(dictionary, keys) // Output: true
 *
 * val dictionary = mapOf("a" to 1, "b" to 2)
 * val keys = listOf("a", "b", "c")
 * checkDictKeys(dictionary, keys) // Output: false
 */
fun checkDictKeys(dictionary: Map<String, Int>, keyList: List<String>): Boolean {

    for (key in keyList) {
        if (!dictionary.containsKey(key)) {
            return false
        }
    }
    return true
}

val dictionary = mapOf("a" to 1, "b" to 2, "c" to 3)
/**
 * Given a dictionary and a list of keys,
 * check if all the keys are present in the dictionary.
 *
 * @param dictionary The dictionary to check for key presence.
 * @param keyList The list of keys to check.
 * @return True if all the keys are present, False otherwise.
 *
 * Example usage:
 * val dictionary = mapOf("a" to 1, "b" to 2, "c" to 3)
 * val keys = listOf("a", "b", "c")
 * checkDictKeys(dictionary, keys) // Output: true
 *
 * val dictionary = mapOf("a" to 1, "b" to 2)
 * val keys = listOf("a", "b", "c")
 * checkDictKeys(dictionary, keys) // Output: false
 */
fun checkDictKeys(dictionary: Map<String, Int>, keyList: List<String>): Boolean {
/**
 * Given a dictionary and a list of keys,
 * check if all the keys are present in the dictionary.
 *
 * @param dictionary The dictionary to check for key presence.
 * @param keyList The list of keys to check.
 * @return True if all the keys are present, False otherwise.
 *
 * Example usage:
 * val dictionary = mapOf("a" to 1, "b" to 2, "c" to 3)
 * val keys = listOf("a", "b", "c")
 * checkDictKeys(dictionary, keys) // Output: true
 *
 * val dictionary = mapOf("a" to 1, "b" to 2)
 * val keys = listOf("a", "b", "c")
 * checkDictKeys(dictionary, keys) // Output: false
 */
fun checkDictKeys(dictionary: Map<String, Int>, keyList: List<String>): Boolean {

    for (key in keyList) {
        if (!dictionary.containsKey(key)) {
            return false
        }
    }
    return true
}

val dictionary = mapOf("a" to 1, "b" to 2, "c" to 3)