-4

**For example, I want to find the fifth root of 4, but I don't know how to do it. Can anyone guide me?

I want to write a function with two inputs, the first input is the specified number and the second input specifies the root number. For example, the fifth root of 4**

khelwood
  • 55,782
  • 14
  • 81
  • 108

1 Answers1

1
def root_func(number,root):
    return number ** (1/root)

print(root_func(9,2)) 
##Output:3
Utku Can
  • 683
  • 3
  • 12