From the course: Certified Entry-Level Python Programmer (PCEP-30-02) Cert Prep

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Writing and executing Python code

Writing and executing Python code

- [Instructor] Now it's time to write and execute Python code. Let's first analyze how we can typically execute code in a programming language. We have interpreters, compilers, and transpilers. An interpreter is a program that directly executes source code line by line, translating and executing each instruction in real time. In this case, it doesn't generate any output file, it just execute the file, and that's all. On the other hand, a compiler, it's a program that translates the source code that we write into machine code that can be executed in one specific CPU architecture and one specific operating system. For example, it can be on Intel 64 bits for Windows or it can be for Apple Silicon on MacOS. Sometimes the compiler, instead of creating a code, the binary code for one specific CPU architecture, it creates binary code for an intermediate language. In this case, another software that is typically known as the…

Contents