<human>:  What is a good Python function to get attribute type in Python.
<bot>: Here is a Python function to get attribute type in Python

import re

def get_type(obj):
  """
  Return the type of an object.

  >>> get_type('str')
  'str'
  """
  return type(obj)

# Enter the object
obj ='str'

# Calling the function
print((get_type(obj)))

#Example Output
# <class 'str'>

#Remember to inspect code for bugs.