<human>:  Can you show me a Python function to log a variable without knowing its type.
<bot>: Here is a Python function to log a variable without knowing its type in Python

import re

def log(x):
  """
  Log a variable without knowing its type.
  """
  if isinstance(x, int):
    return "int"
  elif isinstance(x, float):
    return "float"
  elif isinstance(x, str):
    return "str"
  elif isinstance(x, bool):
    return "bool"
  elif isinstance(x, list):
    return "list"
  elif isinstance(x, dict):
    return "dict"
  elif isinstance(x, tuple):
    return "tuple"
  else:
    return "unknown"

# Enter the variable
x = 1

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

#Example Output
# int

#Remember to inspect code for bugs.