1.

Which is the correct operator for power(x^y)?(a) X^y(b) X**y(c) X^^y(d) None of the mentionedI had been asked this question in an online quiz.I want to ask this question from Basic Operators topic in portion Variable Names, Operators, Data Types & Numeric Types of Python

Answer» RIGHT CHOICE is (b) X**y

To explain I would say: In python, power OPERATOR is x**y i.e. 2**3=8.


Discussion

No Comment Found

Related InterviewSolutions