+ 1
I didn't understand the Exponention
3 Respuestas
+ 6
Here is some info on the math involved:
http://www.purplemath.com/modules/exponent.htm
In addition to using x**n you can also use the power function pow(), where
pow(x, n) is equivalent to x**n.
https://docs.python.org/3/library/functions.html#pow
+ 2
In Python, an exponentiation is done by writing:
x**n
An exponentiation is a multiplication, where all factors have the exact same value. n describes how often you use x as this factor in the multiplication.
For example, if you write:
2**4
it's the same as
2*2*2*2
so the result will be 16.
Next time you don't understand a certain part of a lesson, you can take a look at the comment section. There, you will often find a good explanation.
+ 1
thanks:)