Call abs function to get absolute value : abs « Buildin Function « Python Tutorial






print abs(4)
print abs(-4)
13.1.abs
13.1.1.abs() returns the absolute value of the given argument.
13.1.2.Call abs function to get absolute value