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?
5 Réponses
+ 6
** is power
2 ** 3 = 8
is the same as
2 * 2 * 2 = 8
+ 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
0
means raised to the power
0
it's mean power of number
0
2**4mean 2*2*2*2 4**2mean4*4