human
Write me a Python code to log a variable without knowing its type in Python.
assistant
Here is a Python code to log a variable without knowing its type in Python

import math

def log(x):
    """
    Log a variable without knowing its type.
    """
    if x < 0:
        return "-" + str(abs(x))
    else:
        return str(x)

# Enter the variable
x = -10

# Calling the function
print((log(x)))

#Example Output
# -10

#Remember to inspect code for bugs.