R

Rati Dubey • 8.55K Points
Tutor III

Q. Which function returns the absolute value of a number in Python?

  • (A) fabs()
  • (B) abs()
  • (C) absolute()
  • (D) math.abs()
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Python

Explanation by: Rati Dubey
The built-in `abs()` function returns the absolute value of a number.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics