/**
 * Write a program to check if two actors are the same, using identity comparison.
 * Use a continue statement to proceed to the next element in the loop if a specific condition is met.
 *
 * @param actor1 Name of the first actor
 * @param actor2 Name of the second actor
 * @return True if the actors are the same, False otherwise
 */
fun isSameActor(actor1: String, actor2: String): Boolean {

    val actorsList = listOf("Meryl Streep", "Daniel Day-Lewis", "Cate Blanchett", "Tom Hanks")

    for (actor in actorsList) {
        if (actor === actor1) {
            continue  // Skip to the next iteration if actor1 is found in the list
        } else if (actor === actor2) {
            return true  // The actors are the same, return true
        }
    }

    return false  // The actors are different, return false
}
/**
 * Write a program to check if two actors are the same, using identity comparison.
 * Use a continue statement to proceed to the next element in the loop if a specific condition is met.
 *
 * @param actor1 Name of the first actor
 * @param actor2 Name of the second actor
 * @return True if the actors are the same, False otherwise
 */
fun isSameActor(actor1: String, actor2: String): Boolean {
/**
 * Write a program to check if two actors are the same, using identity comparison.
 * Use a continue statement to proceed to the next element in the loop if a specific condition is met.
 *
 * @param actor1 Name of the first actor
 * @param actor2 Name of the second actor
 * @return True if the actors are the same, False otherwise
 */
fun isSameActor(actor1: String, actor2: String): Boolean {

    val actorsList = listOf("Meryl Streep", "Daniel Day-Lewis", "Cate Blanchett", "Tom Hanks")

    for (actor in actorsList) {
        if (actor === actor1) {
            continue  // Skip to the next iteration if actor1 is found in the list
        } else if (actor === actor2) {
            return true  // The actors are the same, return true
        }
    }

    return false  // The actors are different, return false
}