get the class of an object in python code example Example: python get object class user = User() type(user).__name__ >> 'User'