def balanced_text(myText):
    """
    checks line by line that parens and quotations are balanced
    Args:
         myText: contents of a text file, multi-line string
    Returns:
         string, "Balanced" if no problems found
                 "Unbalanced, line x" if  a problem was found
                                      on line x of text
    """
    open_list = ["[", "{", "("]
    close_list = ["]", "}", ")"]
    quote_list = [
        "'",
        '"',
        "`",
    ]
    lnum = 1
    for line in myText:
        stack = []
        for i in line:
            if i in open_list:
                stack.append(i)
            elif i in close_list:
                pos = close_list.index(i)
                rm = open_list[pos]
                if (len(stack) > 0) and rm in stack:
                    stack.remove(rm)
            if i in quote_list:
                if (len(stack) > 0) and i in stack:
                    stack.remove(i)
                else:
                    stack.append(i)
        if len(stack) != 0:
            return "Unbalanced line %s" % lnum
        lnum += 1
    return "Balanced"