GoalScope — is_nested (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def is_nested(string):↵
"""Check if the parentheses in the string are properly nested."""↵
stack = []↵
for char in string:↵
if char == '(':↵
stack.append(char)↵
elif char == ')':↵
if not stack:↵
return False↵
stack.pop()↵
return not stack↵
</code>