This error is probably caused by a syntax error above in the code, for example, the lack of a close password.
For example, the following code will give SyntaxError in the same place as your code:
(
def main():
pass
If it's hard for you to keep track of this, submit the code that comes earlier.
source
share