Appearance
Inbuilt Functions
- abs() Returns the absolute value of a number which is its distance from 0.
python
num1 = -9.99
num2 = 8.88
print(abs(num1),abs(num2))
#Output: 9.99 8.88
#Distance from -9.99 to 0: 9.99
#Distance from 0 to 8.88: 8.88Under Construction