/**
 * Create a tuple with the given elements and check if the item is not present in it.
 *
 * @param elements a list of elements to create a tuple from
 * @param itemToCheck the item to check for non-membership in the tuple
 * @return true if the item is not present in the tuple, false otherwise
 */
fun createTupleAndCheckMembership(elements: List<Any>, itemToCheck: Any): Boolean {

    // Create a tuple from the list of elements
    val myTuple = elements.toTypedArray()

    // Check if the item is not present in the tuple
    return itemToCheck !in myTuple
}
/**
 * Create a tuple with the given elements and check if the item is not present in it.
 *
 * @param elements a list of elements to create a tuple from
 * @param itemToCheck the item to check for non-membership in the tuple
 * @return true if the item is not present in the tuple, false otherwise
 */
fun createTupleAndCheckMembership(elements: List<Any>, itemToCheck: Any): Boolean {
/**
 * Create a tuple with the given elements and check if the item is not present in it.
 *
 * @param elements a list of elements to create a tuple from
 * @param itemToCheck the item to check for non-membership in the tuple
 * @return true if the item is not present in the tuple, false otherwise
 */
fun createTupleAndCheckMembership(elements: List<Any>, itemToCheck: Any): Boolean {

    // Create a tuple from the list of elements
    val myTuple = elements.toTypedArray()

    // Check if the item is not present in the tuple
    return itemToCheck !in myTuple
}