human
get attribute type in.
assistant
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.