0 out of 464 challenges solved
Write a Python function `max_product_tuple` that takes a list of tuples as input. Each tuple contains two integers. The function should return the maximum absolute product of the two integers in any tuple from the list. #### Example Usage ```python [main.nopy] print(max_product_tuple([(2, 7), (2, 6), (1, 8), (4, 9)])) # Output: 36 print(max_product_tuple([(10, 20), (15, 2), (5, 10)])) # Output: 200 print(max_product_tuple([(11, 44), (10, 15), (20, 5)])) # Output: 484 ``` #### Constraints - The input list will contain at least one tuple. - Each tuple will contain exactly two integers. - The integers can be positive, negative, or zero.
def max_product_tuple(list_of_tuples): """ Calculate the maximum absolute product of two integers in any tuple from the list. Args: list_of_tuples (list of tuple): A list of tuples, each containing two integers. Returns: int: The maximum absolute product. """ # Placeholder for the solution pass