Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
64
def
main():
65
s = input(
"Enter sequence of brackets: "
)
66
print(f
"'{s}' is {'' if is_balanced(s) else 'not '}balanced."
)
67
68
69
if
__name__ ==
"__main__"
:
Callers
1
nested_brackets.py
File · 0.70
Calls
1
is_balanced
Function · 0.85
Tested by
no test coverage detected