How to insert square root in Python?? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 3

How to insert square root in Python??

I want to find square root of a number. How should I do that?

10th May 2017, 5:55 AM
Ayush Kumar Singh
Ayush Kumar Singh - avatar
2 Respuestas
+ 19
import math print(math.sqrt(64))
10th May 2017, 5:57 AM
Dev
Dev - avatar
0
can do it without math module using (variable)**0.5
15th May 2017, 6:55 PM
Alan Beveridge
Alan Beveridge - avatar