+ 1

What is mean in abs in python

?

25th Jun 2020, 2:40 AM
Satyam Mishra
Satyam Mishra - avatar
3 Answers
+ 1
Abs = absolute value. abs(1) = 1 abs(-1) = 1
25th Jun 2020, 2:51 AM
James Clark I. Vinarao
James Clark I. Vinarao - avatar
+ 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
25th Jun 2020, 3:02 AM
uday kiran
uday kiran - avatar
0
abs is short form for absolute value. abs(-1) = 1
25th Jun 2020, 2:47 AM
Peter Parker
Peter Parker - avatar