Question: 1. Absolute value. 1.1. [Python] Write a Python code that calculates the absolute value of a - b, where a and b are the inputs.
1. Absolute value. 1.1. [Python] Write a Python code that calculates the absolute value of a - b, where a and b are the inputs. (without using the abs function) (@5%) 1.2. [Python] White a function called absolute() that outputs the absolute value lx, given that the input x using your Python code from Problem 1.1. (@5%)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
