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?
- A.
pow(X, Y) / pow(X, Y)
- B.
power(X, Y) / power(X, Y)
- C.
math.pow(X, Y) / math.pow(X, Y)
- 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.