- 1
Python operators
How do you find the square root of a number in python without doing it manually?
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)
0
help me
i dont know the answer
please
im gonna get detention
0
does anyone know the answer
0
help
0
if you wanted to do the square root of 4 for example, you would write
print(4**(1/2))
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
0 Votes
Тренажер кода
0 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes