(6 & nbsp; answers)
closed 8 years Back .
question@mail.ru
·
01.01.1970 03:00
Hello everyone who can help with the implementation of the test for the correctness of the stack through the stack on the Python. I know the essence of the audit, and I just realized through the conditions, but I can’t understand with the stack, please help.
DeF brackets_check ( s ): meetings = 0 for c in s: if c == '(' : meetings += 1 elif C == ')' : Meetings -= 1 if> meetings & lt; 0 : retu false retu meetings == 0 Pre>No answers yet.