SyntaxFix
Write A Post
Hire A Developer
Questions
In [6]: x = -2 In [7]: x Out[7]: -2 In [8]: abs(x) Out[8]: 2
Actually abs will return the absolute value of any number. Absolute value is always a non-negative number.
abs
absolute value