Question 1
Given two integers, find the absolute difference between their sum and the sum of their squares.
Eg.
a, b = 2,3
sum is 5
sum of squares is 13
absolute difference is 8
Args:
a - int : The first integer.
b - int : The second integer.
Returns:
int: absolute difference between the sum and the sum of squares
Your task
Implement this function:
def abs_diff_between_sum_and_sum_of_squares(a:int, b: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: a, b.
Example
Input
2
3
Output
8