/**
 * Given a list of tuples, the function should iterate through each tuple and print the values.
 * Each tuple must contain two elements.
 *
 * Example:
 * loopThroughTuples(listOf(1 to "apple", 2 to "banana", 3 to "cherry"))
 * Output:
 * 1 apple
 * 2 banana
 * 3 cherry
 *
 * @param tuples A list of tuples, where each tuple contains two elements.
 */
fun loopThroughTuples(tuples: List<Pair<Int, String>>) {

    for (tuple in tuples) {
        println("${tuple.first} ${tuple.second}")
    }
}
/**
 * Given a list of tuples, the function should iterate through each tuple and print the values.
 * Each tuple must contain two elements.
 *
 * Example:
 * loopThroughTuples(listOf(1 to "apple", 2 to "banana", 3 to "cherry"))
 * Output:
 * 1 apple
 * 2 banana
 * 3 cherry
 *
 * @param tuples A list of tuples, where each tuple contains two elements.
 */
fun loopThroughTuples(tuples: List<Pair<Int, String>>) {
/**
 * Given a list of tuples, the function should iterate through each tuple and print the values.
 * Each tuple must contain two elements.
 *
 * Example:
 * loopThroughTuples(listOf(1 to "apple", 2 to "banana", 3 to "cherry"))
 * Output:
 * 1 apple
 * 2 banana
 * 3 cherry
 *
 * @param tuples A list of tuples, where each tuple contains two elements.
 */
fun loopThroughTuples(tuples: List<Pair<Int, String>>) {

    for (tuple in tuples) {
        println("${tuple.first} ${tuple.second}")
    }
}