Python : Operators Expressions and Python Statements

Which is the correct operator for power(x,y)? , Which is the correct operator for power(x,y)?

Which is the correct operator for power(x,y)?

Which is the correct operator for power(x,y)?
A. X^y

B. X**y

C. X^^y

D. None of the mentioned



Correct Answer :

B. X**y



Explanation
In python, power operator is x**y i.e. 2**3=8.
CCC Online Test , CCC MCQ Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz career counselling in allahabad Website development Company in Allahabad