-3
I am unable to solve an exercise using python stack...
A sequence of parentheses "(" ")", brackets "[" "]" and keys "{" "}" is said to be balanced if each "open" symbol is "closed" at an appropriate time. I need to write a "balanced" function that takes a string and returns "True" if the string represents a balanced sequence, "False" if not.
The function will only receive parentheses, brackets and keys.
Tatiane, try to put the code and not the image of it, please, it is easier for people to analyze and answer you.
– Daniel Mendes