get attributes of object python get set code example Example: set attribute python setattr(object, name, value)