+ 1

How do i do roots in python?

3rd May 2020, 10:52 PM
Alemir
3 Answers
+ 6
import math math.sqrt()
3rd May 2020, 10:54 PM
Abhay
Abhay - avatar
+ 5
Also you can do this: 9**(1/2) # square 8**(1/3) # cubic
3rd May 2020, 11:03 PM
HonFu
HonFu - avatar
+ 4
root = num**(1/2)
3rd May 2020, 11:02 PM
Marcus Xavierr
Marcus Xavierr - avatar