Answers for "nth root program in python"

1

nth root of a number python

## 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))
Posted by: Guest on February-08-2021

Code answers related to "nth root program in python"

Python Answers by Framework

Browse Popular Code Answers by Language