# Getting the class name of an instance in Python?

You can use the built-in `type()` function to get the class name of an instance in Python. For example:

```python
class MyClass:
    pass

my_instance = MyClass()
print(type(my_instance).__name__)
```

This will output `MyClass`.
You can also use the `__class__` attribute on the object which returns the class of the instance.

```python
class MyClass:
    pass

my_instance = MyClass()
print(my_instance.__class__.__name__)
```

This will also output `MyClass`.