From 83e049b6c655a1400eb32bed01db3271f515e822 Mon Sep 17 00:00:00 2001 From: Arina Dohadailo Date: Sat, 17 Oct 2026 21:57:14 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20u6/matching=5Fbrackets.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- u6/matching_brackets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/u6/matching_brackets.py b/u6/matching_brackets.py index 2ab7368..16ffc8f 100644 --- a/u6/matching_brackets.py +++ b/u6/matching_brackets.py @@ -1,5 +1,6 @@ def is_paired (input_string): pairs = {")": "(", "]": "[", "}": "{"} + opening = set(pairs.values()) stack = [] for char in input_string: if char in opening: