CNiall schrieb:
I am very new to Python (I started learning it just yesterday), but I have encountered a problem.

I want to make a simple script that calculates the n-th root of a given number (e.g. 4th root of 625--obviously five, but it's just an example :P), and because there is no nth-root function in Python I will do this with something like x**(1/n).

There is - pow.

>>> from math import pow
>>> pow(625, .25)
5


Diez
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to