def execute(self):
        if not self.args:
            self.pc.update_output('Put what where?')
            return
        exp = r'(?P<target_kw>(\w|[ ])+)([ ]+(?P<prep>(in)|(inside)|(on)))(?P<container>(\w|[ ])+)'
        match = re.match(exp, self.args.lower().strip())
        if not match:
            self.pc.update_output('Type "help put" for help with this command.')
            return
        target_kw, preposition, cont_kw = match.group('target_kw', 
                                                      'prep', 
                                                      'container')
        target = self.pc.check_inv_for_keyword(target_kw)
        if not target:
            self.pc.update_output(target_kw % 'You don\'t have "%s".')
            return
        container = self.pc.check_inv_for_keyword(cont_kw)
        # Make sure the container object exists
        if not container:
            if self.pc.location:
                container = self.pc.location.get_item_by_kw(cont_kw)
                if not container:
                    self.pc.update_output('%s isn\'t here.' % cont_kw)
                    return
        # Make sure it's a container
        if not container.has_type('container'):
            self.pc.update_output('%s is not a container.' % 
                                    container.name.capitalize())
            return
        c_type = container.item_types['container']
        if c_type.closed:
            self.pc.update_output('It\'s closed.')
            return
        if c_type.item_add(target):
            self.pc.update_output('You put %s %s %s.' % (target.name,
                                                           preposition,
                                                           container.name))
            if self.pc.location:
                tr = '%s puts %s %s %s.' % (self.pc.fancy_name(), 
                                            target.name, preposition,
                                            container.name)
                self.pc.location.tell_room(tr, [self.pc.name])
        else:
            self.pc.update_output('%s won\'t fit %s %s.' % (target.name.capitalize(),
                                                              preposition,
                                                              container.name))
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Put.execute/swapped operands of `%`