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 - Python Tutorial
From the course: Certified Entry-Level Python Programmer (PCEP-30-02) Cert Prep
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Fundamentals of Python12m 52s
-
(Locked)
Writing and executing Python code12m 46s
-
(Locked)
Python code structure10m 32s
-
(Locked)
PEP 8 style guidelines and indentation4m 30s
-
(Locked)
Variables and literals10m 55s
-
(Locked)
Output messages to the console4m 7s
-
(Locked)
Defining numerical representations9m 30s
-
(Locked)
Working with strings12m 14s
-
(Locked)
Using operators8m 57s
-
(Locked)
Receiving input data from the console5m 52s
-
-
-
-
-