Check sibling questions

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



def nthRoot (x,n= 2 ):

    res=x**( 1 /n)

    return res

Are ads bothering you?

CA Maninder Singh's photo - Expert in Practical Accounts, Taxation and Efiling

Made by

CA Maninder Singh

CA Maninder Singh is a Chartered Accountant for the past 12 years. He also provides Accounts Tax GST Training in Delhi, Kerala and online.