python get class code example
Example 1: python get class
x.__class__.__name__
Example 2: python get object class
user = User()
type(user).__name__
>> 'User'
x.__class__.__name__
user = User()
type(user).__name__
>> 'User'