+ 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 Antworten
+ 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