human
Write me a Python code to code for exponential and logarithmic functions.
assistant
Here is a Python code to code for exponential and logarithmic numbers

import math

def log_and_exp(x):
        """Return the natural logarithm of x and the exponential of x."""
        return (math.log(x), math.exp(x))

# Enter the number
x = 2.0

# Calling the function
(ln, ex) = log_and_exp(x)

# Printing the results
print((ln, ex))

#Example Output
# (0.6931471805599453, 7.38905609893065)

#Remember to inspect code for bugs.