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

Function main

other/nested_brackets.py:64–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63
64def main():
65 s = input("Enter sequence of brackets: ")
66 print(f"'{s}' is {'' if is_balanced(s) else 'not '}balanced.")
67
68
69if __name__ == "__main__":

Callers 1

nested_brackets.pyFile · 0.70

Calls 1

is_balancedFunction · 0.85

Tested by

no test coverage detected