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