0 out of 464 challenges solved
Write a Python function `check_smaller` that takes two tuples of equal length as input and checks if each element of the second tuple is smaller than its corresponding element in the first tuple. The function should return `True` if this condition is met for all elements, otherwise `False`. #### Example Usage ```python [main.nopy] print(check_smaller((1, 2, 3), (0, 1, 2))) # Output: True print(check_smaller((4, 5, 6), (4, 5, 6))) # Output: False print(check_smaller((10, 20, 30), (5, 15, 25))) # Output: True ``` #### Constraints - The input tuples will always have the same length. - The elements of the tuples will be integers.
def check_smaller(test_tup1, test_tup2): """ Check if each element of the second tuple is smaller than its corresponding element in the first tuple. Args: test_tup1 (tuple): The first tuple of integers. test_tup2 (tuple): The second tuple of integers. Returns: bool: True if all elements in test_tup2 are smaller than their counterparts in test_tup1, False otherwise. """ # Implement the function logic here pass