0 out of 464 challenges solved
Write a Python function `is_divisible_by_11(n)` that determines whether a given integer `n` is divisible by 11. The function should return `True` if the number is divisible by 11, and `False` otherwise. #### Example Usage ```python [main.nopy] print(is_divisible_by_11(121)) # Output: True print(is_divisible_by_11(123)) # Output: False print(is_divisible_by_11(0)) # Output: True ``` #### Constraints - The input `n` will be an integer. - The function should handle both positive and negative integers.
def is_divisible_by_11(n): """ Determine if a number is divisible by 11. Args: n (int): The number to check. Returns: bool: True if n is divisible by 11, False otherwise. """ # Placeholder for the solution pass