python get instance class name 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'