… moderator edit …
what is wrong here ?
… moderator edit …
what is wrong here ?
Remove one of the parentheses before 1-y
For those reading along at home, prior to v3.10 Python placed the ^ symbol at the location where the SyntaxError was detected. Which means for unbalanced parentheses or brackets, the actual error is in the line before. This error messaging was enhanced for v 3.10 and now positions the ^ at the location of the unbalanced parentheses or bracket.
https://docs.python.org/3/whatsnew/3.10.html?highlight=syntax%20error
Please do not post your code on the forum. That breaks the community standard.
Only post the error message or asserts.