Sail E0 Webinar
Question
Is the output of the function abs() the same as that of the function math.fabs()?
Options:
A .  sometimes
B .  always
C .  never
D .  none of the mentioned
Answer: Option A


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 ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers