Jan-12-2019, 06:35 AM
Python can be saved as a .py file which can be run by Python. This .py is a file that is interpreted.
But you cannot distribute .py files because
1) Users can read the file
2) Users need Python to run it
So you compile Python to a binary file (.exe) and then distribute it.
But.. at this point the binary file is no longer "interpreted" but is "compiled". So Python should be a compiled language right? Why is it interpreted? The only time you're interpreting is when testing..
But you cannot distribute .py files because
1) Users can read the file
2) Users need Python to run it
So you compile Python to a binary file (.exe) and then distribute it.
But.. at this point the binary file is no longer "interpreted" but is "compiled". So Python should be a compiled language right? Why is it interpreted? The only time you're interpreting is when testing..