0 out of 464 challenges solved

Elementwise Bitwise AND Tuples

Write a Python function `and_tuples` that takes two tuples of integers as input and returns a new tuple. The new tuple should contain the result of the bitwise AND operation performed elementwise on the corresponding elements of the input tuples.

#### Example Usage
```python [main.nopy]
print(and_tuples((10, 4, 6, 9), (5, 2, 3, 3)))  # Output: (0, 0, 2, 1)
print(and_tuples((1, 2, 3, 4), (5, 6, 7, 8)))  # Output: (1, 2, 3, 0)
print(and_tuples((8, 9, 11, 12), (7, 13, 14, 17)))  # Output: (0, 9, 10, 0)
```

#### Constraints
1. Both input tuples will have the same length.
2. Each element in the tuples will be a non-negative integer.
def and_tuples(test_tup1, test_tup2):
    """
    Perform elementwise bitwise AND operation on two tuples.

    Args:
    test_tup1 (tuple): The first tuple of integers.
    test_tup2 (tuple): The second tuple of integers.

    Returns:
    tuple: A tuple containing the result of the bitwise AND operation.
    """
    # Placeholder for the solution
    pass