Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
38
def
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
49
if
__name__ ==
"__main__"
:
Callers
1
nested_brackets.py
File · 0.70
Calls
1
is_balanced
Function · 0.85
Tested by
no test coverage detected