ChatGPT - Python Logarithm Calculation