Python Pow
Pow function
The pow(arg1, arg2[arg3]) function return the arg1 to the power arg2. If arg3 is present, then the function return the arg1 to the power arg2, modulo arg3.
Examples
Example 1
>>> pow(2,2) 4 >>> pow(2,3) 8 >>> pow(2,3,2) 0 >>>
Example 2
>>> a = 3 >>> b = 4 >>> c = 2 >>> pow(a,b) 81 >>> pow(a,b,c) 1 >>>