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