how to get cube root python code example
Example 1: cube root in python
a=125
print(a**(1/3))
Example 2: how to get cube root python
# Check if the Square root of the First number is Equal to the Cube root of the Second number
import math
global x
global y
def check_square_and_cube(x, y):
sq_rt_x=math.sqrt(x)
cb_rt_y=(y**(1/3))
if sq_rt_x==cb_rt_y:
return True
else :
return False
check_square_and_cube(9, 27)