Question 1
Write a function is_even_and_second_last_digit_is_two that takes an integer input num and returns a boolean value. The function should check if the number is even and if the second last digit is two. If both conditions are satisfied, return True; otherwise, return False.
Examples
>>> is_even_and_second_last_digit_is_two(232)
False
>>> is_even_and_second_last_digit_is_two(120)
True
>>> is_even_and_second_last_digit_is_two(25)
False
>>> is_even_and_second_last_digit_is_two(13)
False
Your task
Implement this function:
def is_even_and_second_last_digit_is_two(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
232
Output
False