Do you know how to use the Python exponent operator? Sum, subtraction, and Multiplication and division are the operators that are normally taught in Python. Here you will learn how to use the exponentiation operator in python.
1. Exponent in Python
First and foremost, multiplying a number by other, as you know, you use the symbol “*“
Please see code below:
$ x = 4 * 2
$ x
$ 8
Now, if you want to raise a number to the power of another number, you should use a double multiplying symbol — which means you should use “**“
Please see code below:
$ x = 4 ** 2
$ x
$ 16
Easy, isn’t it?