Is python compiled based or interpretive based language?



  • Python mostly used in scripting, is general purpose programming language which supports OOP Object oriented programming principles as supported by C++, Java, etc. 
  • Python programs are written to files with extension .py
  • These python source code files are compiled to byte code (python specific representation and not binary code), platform independent form stored in .pyc files. 
  • These byte code helps in startup speed optimization. 
  • These byte code are then subjected to Python Virtual Machine PVM where one by one instructions are read and executed. 
  • This is interpreter.

No comments:

Post a Comment