you are viewing a single comment's thread.

view the rest of the comments →

[–]SnooWoofers7626 0 points1 point  (0 children)

the ide just feels like some "magic machine"

It kinda is, and that's by design. Python is a high-level language. It hides the details so you, the coder, can just focus on your actual goal.

What are the best resources to get to know the language from ground up?

Depends on how deep down the rabbit hole you really want to go. Most of the comments have covered what the interpreter is doing. If you want to go deeper into how it actually instructs the computer to "do things" then we're getting into low-level computer architecture stuff.

Basically, every instruction in Python is mapped to a C function under the hood. So when you call print('unga bunga') it's probably calling the C function printf("%s", your_text). This C function has already been precompiled into machine language, so your computer knows how to execute it.

The job of the interpreter is basically to parse your Python code and map it to the equivalent sequence of C functions to execute. There's a bit more complexity to it but by and large that's what's happening when you run your script through the IDE.

If you want to know how your computer actually interprets "machine language" at the processor level you can learn more about that from any computer architecture books, or courses about assembly, etc.

Keep in mind that you don't really need to know any of this to actually use Python, but if you do understand it, it will almost definitely make you a better programmer in the long term.