Which Python function returns the absolute value?
-
A
absolute()
-
B
abs()
Correct answer
-
C
modulus()
-
D
value()
15 views
Explanation
The abs() function returns the absolute value of a number (integer, float, or complex).
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ