New course! Every coder should learn Generative AI!
Try a free lesson0
Square root in Python
3 Answers
0
Import math class and use sqrt function defined in it .
import math
print(math.sqrt(25))
0
import math
square = 9
print(math.sqrt(square))
0
but for basics, math.sqrt is required so people wont be confused