Python Interpreted or Compiled
Om Pawaskar
1 min read
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
0
Subscribe to my newsletter
Read articles from Om Pawaskar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by