Question
Is the output of the function abs() the same as that of the function math.fabs()?
Answer: Option A
Was this answer helpful ?
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.
Was this answer helpful ?
Submit Solution