/**
 * You are given a list of DNA sequences from different organisms in the form of a string.
 * Write a function that creates a tuple containing the length of each DNA sequence in the given list
 * and then iterates over the list to print each DNA sequence along with its length.
 *
 * @param biologyList List of DNA sequences.
 */
fun createTupleAndIterate(biologyList: List<String>) {

    // Creating a tuple with the length of each DNA sequence
    val sequenceLengthsTuple = biologyList.map { it.length }

    // Iterating over the DNA sequences and printing them along with their lengths
    for ((index, sequence) in biologyList.withIndex()) {
        println("DNA Sequence: $sequence  Length: ${sequenceLengthsTuple[index]}")
    }
}

// Example usage
/**
 * You are given a list of DNA sequences from different organisms in the form of a string.
 * Write a function that creates a tuple containing the length of each DNA sequence in the given list
 * and then iterates over the list to print each DNA sequence along with its length.
 *
 * @param biologyList List of DNA sequences.
 */
fun createTupleAndIterate(biologyList: List<String>) {
/**
 * You are given a list of DNA sequences from different organisms in the form of a string.
 * Write a function that creates a tuple containing the length of each DNA sequence in the given list
 * and then iterates over the list to print each DNA sequence along with its length.
 *
 * @param biologyList List of DNA sequences.
 */
fun createTupleAndIterate(biologyList: List<String>) {

    // Creating a tuple with the length of each DNA sequence
    val sequenceLengthsTuple = biologyList.map { it.length }

    // Iterating over the DNA sequences and printing them along with their lengths
    for ((index, sequence) in biologyList.withIndex()) {
        println("DNA Sequence: $sequence  Length: ${sequenceLengthsTuple[index]}")
    }
}

// Example usage