I feel the same way. Last week, I was surprised that `pow` in Python is actually a modpow: `pow(base, exp[, mod])`.
Also check https://pymotw.com/3/. It's a great tour of the Python standard library
Also check https://pymotw.com/3/. It's a great tour of the Python standard library
>>> pow(5, -1, 13)
8
>>> 5 * 8 % 13
1