+ 1

I didn't understand the Exponention

1st Jul 2018, 6:29 PM
Depressed Zerfetzt,Verletzt,Einsam
Depressed Zerfetzt,Verletzt,Einsam - avatar
3 ответов
+ 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
2nd Jul 2018, 6:13 AM
David Ashton
David Ashton - avatar
+ 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.
1st Jul 2018, 8:34 PM
Theresa
Theresa - avatar
+ 1
thanks:)
2nd Jul 2018, 6:32 AM
Depressed Zerfetzt,Verletzt,Einsam
Depressed Zerfetzt,Verletzt,Einsam - avatar