📜  如何获得立方根python代码示例

📅  最后修改于: 2022-03-11 14:47:02.477000             🧑  作者: Mango

代码示例1
# 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)