Python HELP
ValueError: too many values to unpack (expected 2) 'near bottom' def match_rule(rules, message): response, phrase = "default", None for pattern, responses in rules.items(): match = re.search(pattern, message) if match is not None: response = random.choice(responses) if '{0}' in response: phrase = match.group(1) return response.format(phrase) def replace_pronouns(message): message = message.lower() if 'me' in message: return re.sub('me', 'you', message) if 'my' in message: return re.sub('my', 'your', message) if 'your' in message: return re.sub('your', 'my', message) if 'you' in message: return re.sub('you', 'me', message) return message def respond(message): response, phrase = match_rule(rules, message) ##This is the error line## if '{0}' in response: phrase = replace_pronouns(phrase) response = response.format(phrase) return response