def cart_create(self, items, **kwargs):
        """CartCreate.
        :param items:
            A dictionary containing the items to be added to the cart.
            Or a list containing these dictionaries.
            It is not possible to create an empty cart!
            example: [{'offer_id': 'rt2ofih3f389nwiuhf8934z87o3f4h',
            'quantity': 1}]

        :return:
            An :class:`~.AmazonCart`.
        """

        if isinstance(items, dict):
            items = [items]

        if 10 > len(items):
            raise CartException("You can't add more than 10 items at once")

        offer_id_key_template = 'Item.{0}.OfferListingId'
        quantity_key_template = 'Item.{0}.Quantity'

        for i, item in enumerate(items):
            kwargs[offer_id_key_template.format(i)] = item['offer_id']
            kwargs[quantity_key_template.format(i)] = item['quantity']

        response = self.api.CartCreate(**kwargs)
        root = objectify.fromstring(response)

        return AmazonCart(root)
dataset/ETHPy150Open yoavaviram/python-amazon-simple-product-api/amazon/api.py/AmazonAPI.cart_create/swapped operands of `>`