Question 1
Write a function is_both_divisible_by that takes three integers a, b and c as input and checks if a and b numbers are divisible by c. Assume that c number is non-zero.
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_both_divisible_by(10, 15, 5) # both 10 and 15 are divisible by 5
True
>>>is_both_divisible_by(10, 13, 5) # 13 is not divisible by 5
False
>>>is_both_divisible_by(19, 15, 5) # 19 is not divisible by 5
False
Your task
Implement this function:
def is_both_divisible_by(a: int, b: int, c: 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, c.
Example
Input
10
15
5
Output
True