Write a function namely nthRoot() that receives two parameter x and n and return nth root of x ie. x1/n
The default value of n is 2
Answer:
def
nthRoot
(x,n=
2
):
res=x**(
1
/n)
return
res
Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class