human
What is a good Python function to get the name of an object as string? What is python function to get name of an item.
assistant
Here is a Python function to get the name of an object as string

import sys

def get_name(obj):
    """Returns the name of an object as a string."""
    return obj.__class__.__name__

# Enter the object
obj = "hello"

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

#Example Output
# str

#Remember to inspect code for bugs.