Help with Exponentiation (Python 3) | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

Help with Exponentiation (Python 3)

Ok, so I’ve only just started to get into coding but there’s one thing that confuses me. *2 = Multiplying by 2 **2 = To the power of 2 That part makes sense, I don’t understand the ** (1/2), does that basically mean the square root, if so does ** (1/3) result in the cube root? Any help would be great, just picked Computer Science for my GCSEs and I’m trying to really get a grasp of coding.

29th Apr 2018, 8:26 PM
Sonney
Sonney - avatar
2 Respuestas
+ 1
y=x**(1/n) is such y**n=x so yes
29th Apr 2018, 8:31 PM
VcC
VcC - avatar
+ 1
This is not really coding, this is mathematical notations. Applies for any language having a.power operator (some low level languages dont)
29th Apr 2018, 8:33 PM
VcC
VcC - avatar