Skip to content

Commit 1d765f9

Browse files
committed
made it compatible with python 3.x
1 parent a75a64a commit 1d765f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: other/nested_brackets.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ def is_balanced(S):
4444

4545
def main():
4646

47-
S = input("Enter sequence of brackets within quotes: ")
47+
S = input("Enter sequence of brackets: ")
4848

4949
if is_balanced(S):
50-
print S, "is balanced"
50+
print(S, "is balanced")
5151

5252
else:
53-
print S, "is not balanced"
53+
print(S, "is not balanced")
5454

5555

5656
if __name__ == "__main__":

0 commit comments

Comments
 (0)