Couldn't understand the syntax error

Here in the previous line of code in print statement you need to close all round bracket properly .
Means close print and inner str. And you can print e just after the except statement.
except Exception as e:

Even after rectifying It shows the same error

@beingunique2000 can u link the whole code so that i can rectify your problem

@beingunique2000 The issue is that you have not completed the two open brackets in your code in the line,
print("response from mailgun"
Please type two closing brackets “)” at the end of that line and it should be solved.