Equivalent to base**exp with 2 arguments or base**exp % mod with 3 arguments Some types, such as ints, are able to use a more efficient algorithm when invoked using the three argument form.
>>> pow(38, -1, mod=97) 23 >>> 23 * 38 % 97 == 1 True
builtins/pow
pow