power function in python 3 example Example: power function python # There are two ways of computing x^y in python: >>> 3 ** 4 81 >>> pow(3,4) 81