Python pow function

pow(x,y) function calculates x raised to the power y. It's a method of math module.

>>> import math
>>> math.pow(2,3)
8.0
>>> math.pow(0,3)
0.0
>>> math.pow(3,0)
1.0
















endmemo.com © 2024  | Terms of Use | Privacy | Home