How can i get the cube root in python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i get the cube root in python ?

I'm trying to write a calculator program and i donnu who to call the cube root can you helf me guys ??

13th Dec 2018, 7:52 AM
Mohammad Alsayyadi
Mohammad Alsayyadi - avatar
3 Answers
+ 1
no problem. You could probably use the math library too. You should check it out. https://docs.python.org/3/library/math.html
13th Dec 2018, 8:01 AM
bornToCode()
bornToCode() - avatar
+ 2
you could use the exponent operator, ** and just do **(1/3)
13th Dec 2018, 7:56 AM
bornToCode()
bornToCode() - avatar
+ 1
Wow thats cool thanks bro
13th Dec 2018, 7:59 AM
Mohammad Alsayyadi
Mohammad Alsayyadi - avatar