PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
Is the output of the function abs() the same as that of the function math.fabs()?
A. sometimes
B. always
C. never
D. none of the mentioned
Show Answer
Next Question
Correct Answer:
A
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.
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap