Ways of How to Calculate Exponent in Python?