def nthrootofm(a,n):
return pow(a,(1/n))
a=81
n=4
q=nthrootofm(a,n)
print(q)
## How this will work is it takes the n to the power -1 root of num
## n to the power -1 is just 1 over n
def root(num, n):
return a**(n**-1)
print(root(27, 3))
# finding the nth root of x
x = int(input("What number? "))
n = int(input("What root? "))
print(x ** (1 / n))