We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a75a64a commit 1d765f9Copy full SHA for 1d765f9
other/nested_brackets.py
@@ -44,13 +44,13 @@ def is_balanced(S):
44
45
def main():
46
47
- S = input("Enter sequence of brackets within quotes: ")
+ S = input("Enter sequence of brackets: ")
48
49
if is_balanced(S):
50
- print S, "is balanced"
+ print(S, "is balanced")
51
52
else:
53
- print S, "is not balanced"
+ print(S, "is not balanced")
54
55
56
if __name__ == "__main__":
0 commit comments