Skip to main content

Command Palette

Search for a command to run...

Python Interpreted or Compiled

Published
•1 min read•View as Markdown

As the Py virtual machine executes the byte code line by line so it is interpreted. Languages Like C are compiled Languages.
For example:

For the following code we get this output:

print("Hello World")
print(a)

Hello World

Traceback (most recent call last): File "c:\PythonOm\pyTest.py", line 2, in print(a) ^ NameError: name 'a' is not defined

For a similar code in C "Hello World " will not even be printed we would get compile time error not run time error.

Resources

Hitesh Choudary