Error message

Yesterday I strived with a missing comma in javascript: The error was: SyntaxError: missing ] after element list While for the same(!)¬†python code except for the semicolon the error was: File “filename.py”, line 4 {3:4}, ^ SyntaxError: invalid syntax