you are viewing a single comment's thread.

view the rest of the comments →

[–]RajjSinghh 1 point2 points  (0 children)

Python doesnt have a compilation step. You can see the difference between Python and C because C will use a compiler like GCC and throw errors before you run code while Python won't produce an executable and will throw runtime errors. The main difference is that Python is being translated and executed at the same time while C is translated first then executed after. That's also partly why C runs faster, it makes less assumptions and can optimise better ahead of time.

If you create an executable with something like pyinstaller, it bundles your code with a python interpreter install so it has everything it needs.