mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
all valid python 3
This commit is contained in:
@@ -37,7 +37,7 @@ def is_balanced(S):
|
||||
|
||||
def main():
|
||||
|
||||
S = raw_input("Enter sequence of brackets: ")
|
||||
S = input("Enter sequence of brackets: ")
|
||||
|
||||
if is_balanced(S):
|
||||
print((S, "is balanced"))
|
||||
|
||||
Reference in New Issue
Block a user