From 1d765f9104ae00662f24a53ada86f70fdbac5cdb Mon Sep 17 00:00:00 2001
From: alvin562 <alvindantic562@gmail.com>
Date: Sun, 11 Dec 2016 01:35:51 -0800
Subject: [PATCH] made it compatible with python 3.x

---
 other/nested_brackets.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/other/nested_brackets.py b/other/nested_brackets.py
index f5dd41869..ea681ded5 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__":