How can I check the syntax of Python script without executing it?

You can check the syntax by compiling it:

python -m py_compile script.py

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)