MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / main

Function main

other/nested_brackets.py:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def main():
39
40 S = input("Enter sequence of brackets: ")
41
42 if is_balanced(S):
43 print((S, "is balanced"))
44
45 else:
46 print((S, "is not balanced"))
47
48
49if __name__ == "__main__":

Callers 1

nested_brackets.pyFile · 0.70

Calls 1

is_balancedFunction · 0.85

Tested by

no test coverage detected