how to use setattr as condition code example Example: set attribute python setattr(object, name, value)