Stefan Behnel wrote: > Monte Milanuk, 25.02.2010 16:47: > >> 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 >> >> ? >> > > Did you try it? > > >>> import math > >>> print(math.pow(4,4)) > 256.0 > >>> 4**4 > 256 > >>> 4.0**4 > 256.0 > > Stefan > Yes, I tried it. Now, is there a benefit (besides brevity) one way or the other?
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor