Computer Science

Assertion (A): Python has a built-in math module that you can use for mathematical tasks.

Reasoning (R): The mean() method calculates the arithmetic mean of the numbers in a list using math module.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

Python Modules

3 Likes

Answer

A is true but R is false.

Explanation
Python has a built-in math module that we can use for mathematical tasks. The mean() method calculates the arithmetic mean of the numbers in a list using statistics module.

Answered By

2 Likes


Related Questions