Thanks you very much i did not see the open paranthesis.
If you have an editor which will show you a parenthesis’ matching
character eg the opening parenthesis from standing at the closing
parenthesis, you can sometimes find these by typing what you think is an
“extra” closing parenthesis - if the editor finds an “open” for it then
there is your problem.
I put globals() because a friend told me that it may resolve my problem.
This feels like magical thinking. Did your friend explain why that
Syntax errors are inherently about text structure.
Calling globals() on its own changes nothing, because that is a function
call. It has no side effects, even in a running programme - it exists to
proovide certain information.
If your friend was talking about the “global” statement, that just marks
a name as coming from the global (file level) scope rather than being a
function local variable. Against, nothing to do with syntax.
It is usually useful to strip out as much as you can from your failing
code. By all means try the “globals()” thing, but when it doesn’t change
anything, remove it. That way there are fewer distractions in the code
from the problem you are trying to find.
Cameron Simpson firstname.lastname@example.org