Sep-17-2023, 08:07 PM
(This post was last modified: Sep-17-2023, 08:17 PM by Gribouillis.)
I have to come up with a code for max_minus_min_abs but I am confused on where to enter the numbers I am passing through. This is what I am using
import math def max_minus_min_abs(first_num, second_num): return max(first_num, second_num) - min(first_num, second_num) print(max_minus_min_abs(15, 4))
Gribouillis write Sep-17-2023, 08:17 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.