so far we know that we can pre-compile the python scripts using
python -m py_compile script.py
but my question is what are the advantages of doing so ??
I knew that it will not compile in case of indentation error
and synatx error
in python code.
A part from this what all other error it will check for
Like will it check for any type error
??
Example could be addition of a `int` and `string` x= 10+hello
or any wrong function calls
range(2,4,6,7) - wrong call as it contains 4 parameters
Please clarify with a better explanation .