70 likes | 90 Views
This presentation will educate you about python codes, types of errors, and the differences between compiled and interpreted languages.
E N D
Compiler Languages vs Interpreter Languages in Python. Swipe
Codes in Python Machine interpretation of byte code. It is system and platform dependent. code:- The code generated after PVM:- Stands for Python Virtual Machine and is a software which comes with Python. PVM comes with Interpreter. Source Code:- .py written to develop the application. In python, (.-)file is source code. Byte code:- The code generated after the compilation of source code. (.pyc) file is byte code. Byte code is system and platform independent. It is also called p-code, portable code or object code.
Type of Errors in Python:- One of Python's most significant features is error handling. It was the most important element in the growth of Python. There are mainly two type of errors in Python:- Syntax Error caught at compilation stage. Run-time Error caught at run time or interpretation stage.
Python Python is an interpretive programming language. However, as Python has developed itself as a full-fledged programming language and is accepted across a broad range of applications, it has been compiled and interpreted. Compiled Languages > vs < Interpreted Languages
Compiled Languages Compiled languages need compiler to translate the code. Compiler & Interpreter both are translator and are computer programs. Compiler translates the whole code from one form to another form all at once. Compiler is used to translate Source code to byte code. All Syntactical errors are caught at compilation stage in Python.
Interpreted Languages Interpreted languages needs interpreter to translate the code from one form to another. Interpreter is instruction by instruction execution. Interpreter is used to translate the Byte code to Machine code. All run time errors are caught at interpretation stage.
Topics for next Post Memory Management in Python Components of python program Data Types in Python Stay Tuned with