using class to append items to dict code example Example: add value to dictionary python dict[key] = value