## Absolute value of a number in Python

We can get the absolute value of a number in Python using fabs() function. The function is provided by math module. In addition to, abs() function can also be used. But, before that a bit about absolute value of a number itself. Absolute value of number ‘x’ would be – x if x>0 and, x …