Write a function sum_squares_abs_diff_squares that takes two integer inputs, a and b, and returns a tuple with:
a and b.a and b.NOTE: This is a function type question, you don't have to take input or print the output, just have to complete the required function definition.
Given the inputs a = 3 and b = 4:
So, sum_squares_abs_diff_squares(3, 4) should return (25, 7).
Implement this function:
def sum_squares_abs_diff_squares(a:int, b:int) -> tuple:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: a, b.
Input
3
4
Output
(25, 7)
Write a function `sum_squares_abs_diff_squares` that takes two integer inputs, `a` and `b`, and returns a tuple with: 1. The sum of the squares of `a` and `b`. 2. The absolute difference of the squares of `a` and `b`. **NOTE:** This is a function type question, you don't have to take input or print the output, just have to complete the required function definition. ### Example Given the inputs `a = 3` and `b = 4`: ### Explanation - The sum of squares would be 9 + 16 = 25. - The absolute difference of squares would be |9 - 16| = 7. So, `sum_squares_abs_diff_squares(3, 4)` should return `(25, 7)`. ## Your task Implement this function: ```python def sum_squares_abs_diff_squares(a:int, b:int) -> tuple: ``` Write the function only — the arguments are read for you and the return value is printed automatically. **Arguments** arrive as one Python literal per line, in this order: `a`, `b`. ## Example **Input** ``` 3 4 ``` **Output** ``` (25, 7) ``` Write a function `is_odd_length_palindrome` that takes a string `s` and returns `True` if `s` is a palindrome of odd length, and `False` otherwise. **NOTE:** This is a function type question, you don't have to take input or print the output, just have to complete the required function definition. ### Example - `"hello"` --> `False` (not a palindrome) - `"noon"` --> `False` (palindrome but not odd length) - `"nun"` --> `True` (palindrome and odd length) ## Your task Implement this function: ```python def is_odd_length_palindrome(s: str) -> bool: ``` Write the function only — the arguments are read for you and the return value is printed automatically. **Arguments** arrive as one Python literal per line, in this order: `s`. ## Example **Input** ``` 'hello' ``` **Output** ``` False ``` Write a function `remove_elements_at_two_indices` that takes a list `l` and two indices `i1` and `i2`. The function should remove the elements at these two indices from the list `l`. Assume the indices are non-negative and unique. The function should not return anything but should modify the input list directly. **NOTE:** This is a function type question, you don't have to take input or print the output, just have to complete the required function definition. ### Example ``` >>> l = [1, 2, 3, 4, 5, 6, 7] >>> i1 = 5 >>> i2 = 1 >>> remove_elements_at_two_indices(l, i1, i2) >>> l [1, 3, 4, 5, 7] ``` ## Your task Implement this function: ```python def remove_elements_at_two_indices(l: list, i1: int, i2: int): ``` Write the function only — the arguments are read for you and the return value is printed automatically. **Arguments** arrive as one Python literal per line, in this order: `l`, `i1`, `i2`. ## Example **Input** ``` [1, 2, 3, 4, 5, 6, 7] 5 1 ``` **Output** ``` [1, 3, 4, 5, 7] ```