Balanced Parenthesis

Write a function balanced(s) that given a string containing only open
and closed parenthesis, returns True if the string contains well-formed
parenthesis combination and False otherwise

Observation

Only the function is needed. If you have a test main program, embed it
inside a block  if __name__=="__main__" : 

Problem information

Author: Lluís Padró

Generation: 2026-01-25T14:25:57.282Z

© Jutge.org, 2006–2026.
https://jutge.org
