- 1

Python operators

How do you find the square root of a number in python without doing it manually?

8th Jun 2019, 3:31 AM
MMD L O L35
MMD L O L35 - avatar
5 Answers
+ 4
You can use sqrt() from the math module: import math root = math.sqrt(4) Alternatively, from math import sqrt root = sqrt(2)
8th Jun 2019, 3:46 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
0
help me i dont know the answer please im gonna get detention
22nd Sep 2020, 7:08 PM
Andrew
Andrew - avatar
0
does anyone know the answer
8th Nov 2020, 5:30 PM
Hadiya Anwar
0
help
19th Nov 2020, 11:58 AM
Declan
0
if you wanted to do the square root of 4 for example, you would write print(4**(1/2))
26th Nov 2020, 11:06 AM
Reece Hollis