Is the function abs() same as math.fabs()?
A. sometimes
B. always
C. never
D. none of the mentioned
Answer:A
Is the function abs() same as math.fabs()?
A. sometimes B. always C. never D. none of the mentioned
Explanation: math.fabs() always returns a float and does not work with complex numbers whereas the return type of abs() is determined by the type of value that is passed to it.