Write a function is_tens_digit_greater(num) that takes a positive two-digit integer and returns True if its tens digit is strictly greater than its ones digit, and False otherwise.
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_tens_digit_greater(54) -> True
is_tens_digit_greater(33) -> False
Implement this function:
def is_tens_digit_greater(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.
Input
54
Output
True
Write a function `is_tens_digit_greater(num)` that takes a positive two-digit integer and returns `True` if its tens digit is strictly greater than its ones digit, and `False` otherwise. 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_tens_digit_greater(54) -> True is_tens_digit_greater(33) -> False ``` ## Your task Implement this function: ```python def is_tens_digit_greater(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** ``` 54 ``` **Output** ``` True ``` Write a function `has_common_integer(a, b)` that takes two sets of integers and returns `True` if at least one integer is in both sets, and `False` otherwise. 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 ``` has_common_integer({1, 2, 3}, {3, 4, 5}) -> True has_common_integer({10, 20}, {30, 40}) -> False ``` ## Your task Implement this function: ```python def has_common_integer(a: set, b: set) -> 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** ``` {1, 2, 3} {3, 4, 5} ``` **Output** ``` True ``` Write a function `shuffle_digits(num)` that takes a positive 4-digit integer and returns the integer made of its digits in the order 2nd, 4th, 1st, 3rd. For example, the digits of `1234` are used in the order 2, 4, 1, 3, which gives `2413`. If the result starts with zeros, they are not shown, as for any integer. 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 ``` shuffle_digits(1234) -> 2413 shuffle_digits(2413) -> 4321 ``` ## Your task Implement this function: ```python def shuffle_digits(num: int) -> int: ``` 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** ``` 1234 ``` **Output** ``` 2413 ```