← Go Back
Prior to Python 3.11 you can use:
How to Find the Cube Root of a Number
Starting from Python 3.11, use themath
standard module:>>> import math
>>> math.cbrt(125)
5.0
Prior to Python 3.11 you can use:
>>> 125 ** (1/3)
5.0
🐍 You might also find interesting: