Syntax error on Output

Hey guys,
Complete beginner here. im getting this syntax error on the output (works on terminal). Any idea why?

thanks for the helpers:)

It’s pointing to the parenthesis, i don’t know python, but you could copy paste the code into chatgpt then paste the error and see if it can help you.

Warning as a best practice try not to copy code from chatgpt into vs code but use it to manually find and fix errors. But it’s usually good at syntax.

I can say for sure exit 1 is error, exit 0 is success