how to get the class name of an object in python code example
Example 1: python get type class name
type(x).__name__
Example 2: python get object class
user = User()
type(user).__name__
>> 'User'
type(x).__name__
user = User()
type(user).__name__
>> 'User'