0 out of 464 challenges solved
Write a function `check_tuplex(tuplex, element)` that checks whether a given `element` exists within a tuple `tuplex`. The function should return `True` if the element exists in the tuple, and `False` otherwise.
#### Example Usage
```python [main.nopy]
print(check_tuplex(("a", "b", "c"), "b")) # Output: True
print(check_tuplex((1, 2, 3), 4)) # Output: False
print(check_tuplex(("x", 42, "y"), 42)) # Output: True
```def check_tuplex(tuplex, element):
"""
Check if an element exists within a tuple.
Args:
tuplex (tuple): The tuple to search within.
element (any): The element to search for.
Returns:
bool: True if the element exists in the tuple, False otherwise.
"""
# Implement the function logic here
pass