Question 1
Write a function is_even_or_divisible_by_5 that takes an integer as input and return True if it is even or is divisible by 5 else 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
is_even_or_divisible_by_5(8) -> True (8 is even number)
is_even_or_divisible_by_5(10) -> True (10 is even number and divisible by 5)
is_even_or_divisible_by_5(15) -> True (15 is divisible by 5)
is_even_or_divisible_by_5(7) -> False (not an even number nor divisible by 5)
Your task
Implement this function:
def is_even_or_divisible_by_5(num: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: num.
Example
Input
8
Output
True