def recalculate_prices(self): """Set new prices for all the commodities in the market""" for commodity in self.commodities: self._calculate_price(commodity)