Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find nth root in python

# finding the nth root of x
x = int(input("What number? "))
n = int(input("What root? "))
print(x ** (1 / n))
 
PREVIOUS NEXT
Tagged: #find #nth #root #python
ADD COMMENT
Topic
Name
4+2 =