/**
 * Given a set of stars and a tuple of planets as input, the function iterates through the set and
 * checks if each element is present in the tuple. It then loops through the tuple and prints each planet name.
 */
fun iterateAndLoop(setOfStars: Set<String>, tupleOfPlanets: List<String>) {

    // Check if each star is present in the tuple of planets
    for (star in setOfStars) {
        if (star in tupleOfPlanets) {
            println("$star is also a planet!")
        } else {
            println("$star is not a planet!")
        }
    }

    // Loop through the tuple of planets to print each planet name
    for (planet in tupleOfPlanets) {
        println(planet)
    }
}
/**
 * Given a set of stars and a tuple of planets as input, the function iterates through the set and
 * checks if each element is present in the tuple. It then loops through the tuple and prints each planet name.
 */
fun iterateAndLoop(setOfStars: Set<String>, tupleOfPlanets: List<String>) {
/**
 * Given a set of stars and a tuple of planets as input, the function iterates through the set and
 * checks if each element is present in the tuple. It then loops through the tuple and prints each planet name.
 */
fun iterateAndLoop(setOfStars: Set<String>, tupleOfPlanets: List<String>) {

    // Check if each star is present in the tuple of planets
    for (star in setOfStars) {
        if (star in tupleOfPlanets) {
            println("$star is also a planet!")
        } else {
            println("$star is not a planet!")
        }
    }

    // Loop through the tuple of planets to print each planet name
    for (planet in tupleOfPlanets) {
        println(planet)
    }
}