Which is the correct operator for power (x,y)?
Answers
( y) is the correct answer since it is the independent variable
Answer:
Concept:
An operator in computer science is a character or character that decide the course of action to be taken or factors to be taken. Operators are language-defined structures used in computer programming that operate broadly like functions but have syntactic or semantic differences. Value, evaluation technique, and argument passing mode all play a role in the semantics of operators (such as boolean short-circuiting). A simple operator expression is evaluated in some fashion, and the result may just be a value (an r-value) or it may be an object that allows assignment (an l-value).
Given:
Which is the correct operator for power (x,y)?
Find:
find the correct operator for the given question
Answer:
The answer is X**y
In python, power operator is x**y i.e. 2**3=8.
In Python, the ** operator is used to raise the value on the left to the exponent's power on the right. In other words, 5 is raised to the third power in the statement 5 ** 3. This formula is sometimes written as 53 in math, however what is actually happening is that 5 is being multiplied by itself three times. Running either 5 ** 3 or 5 * 5 * 5 in Python would yield the same result of 125.
#SPJ2