Question: Write a python function absDiff ( . . . ) that takes two integers as parameters, gets the absolute value of both, subtracts the second

Write a python function absDiff(...) that takes two integers as parameters, gets the absolute value of both, subtracts the second from the first, and returns the difference.
Evaluate the following expression using your function. DO NOT HARD CODE THE VALUES; use variables with the returned value from the absDiff function.
x = absDiff(-12,-6)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!