Question 1
Write a function sum_squares_abs_diff_squares that takes two integer inputs, a and b, and returns a tuple with:
- The sum of the squares of
aandb. - The absolute difference of the squares of
aandb.
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
Given the inputs a = 3 and b = 4:
Explanation
- The sum of squares would be 9 + 16 = 25.
- The absolute difference of squares would be |9 - 16| = 7.
So, sum_squares_abs_diff_squares(3, 4) should return (25, 7).
Your task
Implement this function:
def sum_squares_abs_diff_squares(a:int, b:int) -> tuple:
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
3
4
Output
(25, 7)