Out of the following expressions, which one will not find the result as X…

2023

Out of the following expressions, which one will not find the result as X raised to the power Y?

  1. A.

    pow(X, Y) / pow(X, Y)

  2. B.

    power(X, Y) / power(X, Y)

  3. C.

    math.pow(X, Y) / math.pow(X, Y)

  4. D.

    X**Y / X**Y

Attempted by 2121 students.

Show answer & explanation

Correct answer: B

power() is not a built-in Python function. Valid ways are pow(X, Y), math.pow(X, Y), and X**Y.

Explore the full course: Rssb Senior Computer Instructor