def execute(self):
        i = 'You have %s %s.\n' % (str(self.pc.currency), CURRENCY)
        if not self.pc.inventory:
            i += 'Your inventory is empty.'
        else:
            i += 'Your inventory consists of:\n'
            for item in self.pc.inventory:
                if self.pc.isequipped not in item:
                    i += item.name + '\n'
        self.pc.update_output(i)
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Inventory.execute/swapped operands of `not in`