# How to determine the type of an object in Python?

You can use the `type()` function to determine the type of an object in Python. For example:

```python
x = 10
print(type(x))  # Output: <class 'int'>

y = "hello"
print(type(y))  # Output: <class 'str'>

z = [1, 2, 3]
print(type(z))  # Output: <class 'list'>
```

You can also use the `isinstance()` function to check if an object is an instance of a particular class or a subclass of it. For example:

```python
x = 10
print(isinstance(x, int))  # Output: True
print(isinstance(x, str))  # Output: False

y = "hello"
print(isinstance(y, str))  # Output: True
print(isinstance(y, list))  # Output: False

z = [1, 2, 3]
print(isinstance(z, list))  # Output: True
print(isinstance(z, tuple))  # Output: False
```

You can also use the `issubclass()` function to check if a class is a subclass of another class. For example:

```python
class A:
    pass

class B(A):
    pass

print(issubclass(B, A))  # Output: True
print(issubclass(A, B))  # Output: False
```