Your question is Implement Balanced Parentheses. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Allscripts Sunrise Clinical Manager may process text expressions containing parentheses, square brackets, and curly braces. Write a function that returns True when every delimiter is correctly matched and nested, and False otherwise.
Ignore all characters that are not delimiters. An empty string or a string containing no delimiters is considered balanced.
Implement is_balanced(text), where text is a string. Return a boolean:
(, [, and { must be closed by the corresponding delimiter.def is_balanced(text):