Skip to content

Commit 77e1cfb

Browse files
authored
Update evaluate-the-bracket-pairs-of-a-string.py
1 parent 0cea665 commit 77e1cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/evaluate-the-bracket-pairs-of-a-string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def evaluate(self, s, knowledge):
1818
has_pair = False
1919
result.append(lookup.get("".join(curr), '?'))
2020
curr = []
21-
elif is_pair:
21+
elif has_pair:
2222
curr.append(c)
2323
else:
2424
result.append(c)

0 commit comments

Comments
 (0)