Skip to content

Commit

Permalink
made it compatible with python 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
alvin562 committed Dec 11, 2016
1 parent a75a64a commit 1d765f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions other/nested_brackets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit 1d765f9

Please sign in to comment.