python int absolute value code example Example 1: python absolute value >>>abs(-15) 15 Example 2: absolute value python value = -54.26 abs(value)