+ 1
What is mean in abs in python
?
3 Respostas
+ 1
Abs = absolute value.
abs(1) = 1
abs(-1) = 1
+ 1
abs is a function available in math module .
The function abs will take a value and return positive value of that
>> print(math.abs(-6))
output : 6
0
abs is short form for absolute value. abs(-1) = 1