/**
 * The task is to create a tuple using the tuple() function and check if a specific animal is present in the tuple using the in statement.
 *
 * @param farmerList A list containing the animals present on the farmer's farm.
 * @param animal The animal to be checked.
 * @return Pair<Tuple, Boolean> A tuple containing all the animals present on the farmer's farm and a boolean indicating if the specific animal is present in the tuple.
 */
fun farmerTupleCheck(farmerList: List<String>, animal: String): Pair<List<String>, Boolean> {

    // Creating a tuple using the toList() function
    val farmTuple = farmerList.toList()

    // Checking if a specific animal is present in the tuple
    return Pair(farmTuple, animal in farmTuple)
}
/**
 * The task is to create a tuple using the tuple() function and check if a specific animal is present in the tuple using the in statement.
 *
 * @param farmerList A list containing the animals present on the farmer's farm.
 * @param animal The animal to be checked.
 * @return Pair<Tuple, Boolean> A tuple containing all the animals present on the farmer's farm and a boolean indicating if the specific animal is present in the tuple.
 */
fun farmerTupleCheck(farmerList: List<String>, animal: String): Pair<List<String>, Boolean> {
/**
 * The task is to create a tuple using the tuple() function and check if a specific animal is present in the tuple using the in statement.
 *
 * @param farmerList A list containing the animals present on the farmer's farm.
 * @param animal The animal to be checked.
 * @return Pair<Tuple, Boolean> A tuple containing all the animals present on the farmer's farm and a boolean indicating if the specific animal is present in the tuple.
 */
fun farmerTupleCheck(farmerList: List<String>, animal: String): Pair<List<String>, Boolean> {

    // Creating a tuple using the toList() function
    val farmTuple = farmerList.toList()

    // Checking if a specific animal is present in the tuple
    return Pair(farmTuple, animal in farmTuple)
}