Proper bracket sequence python [duplicate]
📁 Conditions, Advanced Python Topics, question
(6 & nbsp; answers)
closed 8 years ago .
Hello everyone who can help with implementing a bracket correctness check using a stack in Python. I know the essence of the check, and I implemented it through conditions, but I can't understand how to do it with a stack, please help.
def brackets_check ( s ): meetings = 0 for c in s: if c == '(' : meetings += 1