/**
 * Given two tuples, tuple1 and tuple2, this function finds the intersection of the elements
 * where the element in tuple1 is not present in tuple2, using the 'NOT operator' and accessing
 * tuple elements.
 *
 * @param tuple1 The first input tuple.
 * @param tuple2 The second input tuple.
 * @return A list containing the elements present in tuple1 but not in tuple2.
 */
fun intersectionNotOperatorAccessingTupleElements(tuple1: List<Any>, tuple2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()
    for (element in tuple1) {
        if (element !in tuple2) {
            intersection.add(element)
        }
    }
    return intersection
}
/**
 * Given two tuples, tuple1 and tuple2, this function finds the intersection of the elements
 * where the element in tuple1 is not present in tuple2, using the 'NOT operator' and accessing
 * tuple elements.
 *
 * @param tuple1 The first input tuple.
 * @param tuple2 The second input tuple.
 * @return A list containing the elements present in tuple1 but not in tuple2.
 */
fun intersectionNotOperatorAccessingTupleElements(tuple1: List<Any>, tuple2: List<Any>): List<Any> {
/**
 * Given two tuples, tuple1 and tuple2, this function finds the intersection of the elements
 * where the element in tuple1 is not present in tuple2, using the 'NOT operator' and accessing
 * tuple elements.
 *
 * @param tuple1 The first input tuple.
 * @param tuple2 The second input tuple.
 * @return A list containing the elements present in tuple1 but not in tuple2.
 */
fun intersectionNotOperatorAccessingTupleElements(tuple1: List<Any>, tuple2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()
    for (element in tuple1) {
        if (element !in tuple2) {
            intersection.add(element)
        }
    }
    return intersection
}