Exponentiation in python
|
|
| Exponentiation in python |
Alright, that covers the very basic operations, addition, subtraction, multiplication, and division. You’re doing great!
It’s time to kick it up a notch and introduce exponentiation–which is what we call it when we raise one number to the power of another.
The exponentiation operation is performed using two asterisks. Like this:
RUN
You can chain exponentiations together. In other words, you can rise a number to multiple powers. For example, 6**4**5.