0

What does **X mean?

in the chapter list comprehension they use a formula of [i**3 for i in range] to create a list, but i cant for the love if me figure out what ** does. Can someone please tell me this?

28th Dec 2016, 12:50 PM
Mupp
5 Réponses
+ 6
** is power 2 ** 3 = 8 is the same as 2 * 2 * 2 = 8
28th Dec 2016, 1:00 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
+ 1
the represent Power, if u say 4**2 is more like saying 4 multiplies itself 2 times. in mathematics u would say its 4 to the power of 2
31st Dec 2016, 7:33 AM
coder
coder - avatar
0
means raised to the power
31st Dec 2016, 9:14 AM
stephen haokip
stephen haokip - avatar
0
it's mean power of number
1st Jan 2017, 3:56 AM
Raghda Allam
Raghda Allam - avatar
0
2**4mean 2*2*2*2 4**2mean4*4
2nd Jan 2017, 7:34 AM
Zhenhui Ding