**New course!**Every coder should learn

**Generative AI!**

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))