Module Assign NameStore Str Expr Str ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad Call NameLoad Call NameLoad NameLoad Index Num If CompareIn NameLoad Str body AugAssignAdd SubscriptStore NameLoad Index NameLoad Num orelse If CompareIn NameLoad Str body AugAssignSub SubscriptStore NameLoad Index NameLoad Num For NameStore Call AttributeLoad NameLoad attr body If CompareNotEq NameLoad Num body Return NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr
N/A N/A __author__ bt3 N/A 
Given a N different open and close braces in a string "( { [ } ] )".
How do you check whether the string has matching braces.
 collections Counter check_if_balance N/A N/A string N/A N/A N/A 
    >>> check_if_balance('{[[(])}]')
    True
    >>> check_if_balance('{[[()}]')
    False
    >>> check_if_balance('')
    True
     N/A table N/A Counter N/A i string N/A N/A index N/A N/A str N/A ord i N/A 0 N/A N/A i {[( N/A N/A N/A table N/A index 1 N/A N/A N/A i )}] N/A N/A N/A table N/A index 1 N/A i N/A N/A table values N/A N/A N/A i 0 N/A N/A False N/A True N/A N/A N/A __name__ __main__ N/A N/A doctest N/A N/A N/A doctest testmod