how to check what class an object is python code example
Example: identify object python
print(type('string'))
# <class 'str'>
print(type('string') is str)
# True
print(type('string'))
# <class 'str'>
print(type('string') is str)
# True