diff --git a/other/nested_brackets.py b/other/nested_brackets.py index f5dd4186969b..ea681ded554f 100644 --- a/other/nested_brackets.py +++ b/other/nested_brackets.py @@ -44,13 +44,13 @@ def is_balanced(S): def main(): - S = input("Enter sequence of brackets within quotes: ") + S = input("Enter sequence of brackets: ") if is_balanced(S): - print S, "is balanced" + print(S, "is balanced") else: - print S, "is not balanced" + print(S, "is not balanced") if __name__ == "__main__":