0
How is code actually run ?
I saw something on the internet . A blogger was saying that you shouldn't learn python . He added Python is a slow language because it is executed line by line and is therefore not suitable for mobile development . Not to raise a debate about python and other programming languages . My question here is : Which code isn't executed line by line . And please no debate about python , just answer the question
2 Answers
+ 1
As far I know, Almost all languages executes code line by line. But difference may is start point and in its halting..
C/C++, C#, Java, .. are compiles total code once line by line but execution starts from main method ..
But in python, its interpreted from 1st line to end but stops if any error occurs. Don't executes any further code. Its an interpreted language. It has no separate compilation phase. So syntax check and execution happens same time... hope it make sensible, and helps..
0
Well programming languages are just some tools for you to use because you don't understand 0-1 so every language converts your code to 01 and then CPU runs them the only difference between languages is just the matter of the language being interpreted or not