[Tutor] raising number to a power

Monte Milanuk memilanuk at gmail.com
Thu Feb 25 16:47:07 CET 2010


Is there a benefit (besides brevity) one way or the other between using:

import math
...
math.pow(x,y)  # x raised to the power y

vs.

x**y

?

Thanks,

Monte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100225/b93e782e/attachment.html>


More information about the Tutor mailing list