Python - Operators and Expression Evaluation
Which of the following is the correct operator syntax to calculate 5 to the power of 3 in Python?
** to calculate powers, so 5 ** 3 means 5 to the power of 3.5 ^ 3 is bitwise XOR, 5 ^^ 3 is invalid syntax, and pow(5, 3) is a function call but not an operator syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions