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

  • (A) fabs()
  • (B) abs()
  • (C) absolute()
  • (D) math.abs()
πŸ’¬ Discuss
βœ… Correct Answer: (B) abs()
Explanation: The built-in `abs()` function returns the absolute value of a number.
Explanation by: Rati Dubey
The built-in `abs()` function returns the absolute value of a number.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
88
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
98%
Success Rate