How do I find square root of a number in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do I find square root of a number in python

15th Apr 2021, 1:50 PM
shubha P
2 Answers
+ 4
from math import sqrt print(sqrt(9)) or print(9**0.5)
15th Apr 2021, 1:50 PM
TOLUENE
TOLUENE - avatar
0
import math number = 2 print(math.sqrt(number))
15th Apr 2021, 4:27 PM
marc
marc - avatar