Question 1
Write a function is_both_divisible_by(a, b, c) that returns True if both a and b are divisible by c, and False otherwise. c is never 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) -> True
is_both_divisible_by(10, 13, 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