/**
 * Iterates over the given dictionary and prints the keys and their corresponding values.
 *
 * @param dictData A dictionary containing items as keys and their lengths as values.
 */
fun iterateOverDict(dictData: Map<String, Int>) {

    for ((key, value) in dictData) {
        println("$key: $value")
    }
}

// BIOMEDICAL DATA

// Given a set of different nucleotide sequences
val nucleotideSequences = setOf("ACGT", "ATCG", "GTA", "TAGC")

// Convert the set into a dictionary where the nucleotide sequences are keys
// and their lengths are the values. Store the result in a variable called 'sequencesDict'.
val sequencesDict = nucleotideSequences.associateWith { it.length }
/**
 * Iterates over the given dictionary and prints the keys and their corresponding values.
 *
 * @param dictData A dictionary containing items as keys and their lengths as values.
 */
fun iterateOverDict(dictData: Map<String, Int>) {
/**
 * Iterates over the given dictionary and prints the keys and their corresponding values.
 *
 * @param dictData A dictionary containing items as keys and their lengths as values.
 */
fun iterateOverDict(dictData: Map<String, Int>) {

    for ((key, value) in dictData) {
        println("$key: $value")
    }
}

// BIOMEDICAL DATA

// Given a set of different nucleotide sequences
val nucleotideSequences = setOf("ACGT", "ATCG", "GTA", "TAGC")

// Convert the set into a dictionary where the nucleotide sequences are keys
// and their lengths are the values. Store the result in a variable called 'sequencesDict'.
val sequencesDict = nucleotideSequences.associateWith { it.length }