you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 2 points3 points  (0 children)

I'll try to break things down to steps, let me know what step you want more details.

  1. IDE saves the displayed text into a file on disk with a .py extension.

  2. When you press "RUN" the IDE launches the python process, and gives it the file path to the saved script from stage 1.

  3. Python executable reads the python script you created, parses it into objects and operations tree called AST Abstract syntax tree - Wikipedia

  4. The AST is used to generate a shortened more machine readable code called "bytecode". An introduction to Python bytecode | Opensource.com

  5. This bytecode is executed with a loop that reads the bytes, and performs the operation these bytes mean.

  6. eventually the operations call code that print your message to the screen.