Write a function is_multiple(a, b) that returns True if a is a multiple of b or b is a multiple of a, and False otherwise. Both numbers are positive.
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.
is_multiple(10, 5) -> True
is_multiple(7, 3) -> False
Implement this function:
def is_multiple(a: int, b: int) -> 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: a, b.
Input
10
5
Output
True
Write a function `is_multiple(a, b)` that returns `True` if `a` is a multiple of `b` or `b` is a multiple of `a`, and `False` otherwise. Both numbers are positive. 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 ``` is_multiple(10, 5) -> True is_multiple(7, 3) -> False ``` ## Your task Implement this function: ```python def is_multiple(a: int, b: int) -> 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: `a`, `b`. ## Example **Input** ``` 10 5 ``` **Output** ``` True ``` Write a function `starts_and_ends_with_same_vowel(s)` that returns `True` if the first and the last letter of the non-empty string `s` are the same vowel (`a`, `e`, `i`, `o` or `u`), without regard to upper or lower case. Otherwise it returns `False`. 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 ``` starts_and_ends_with_same_vowel("Apple") -> False starts_and_ends_with_same_vowel("Atta") -> True ``` ## Your task Implement this function: ```python def starts_and_ends_with_same_vowel(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** ``` "Apple" ``` **Output** ``` False ``` The tuple `t` has an even number of elements. Write a function `add_middle_elems_to_ends_in_even_length_tuple(t)` that takes out its two middle elements and returns a new tuple in which the first of them is at the beginning and the second one is at the end. The other elements stay between them, in their original order. 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 ``` add_middle_elems_to_ends_in_even_length_tuple((10, 20, 30, 40)) -> (20, 10, 40, 30) add_middle_elems_to_ends_in_even_length_tuple(("Lenovo", "Dell", "HP", "Asus")) -> ('Dell', 'Lenovo', 'Asus', 'HP') ``` ## Your task Implement this function: ```python def add_middle_elems_to_ends_in_even_length_tuple(t: tuple) -> 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: `t`. ## Example **Input** ``` (10, 20, 30, 40) ``` **Output** ``` (20, 10, 40, 30) ```