Lesson 1.1 · python-intro
What is Python & Why We Use It
How an interpreter runs statements in order and why Python fits the ICS curriculum.
Objectives
- Define a program as an ordered sequence of instructions.
- Contrast high-level languages with machine language and interpreters with compilers.
- Trace execution line by line from source text to output.
Core Notes
- A processor executes machine instructions directly, while a high-level language lets you write clear logic and mathematical expressions.
- An interpreter reads and executes statements in sequence, reporting errors when control reaches the failing line.
- Comments beginning with # document intent for readers and are ignored during execution.
Worked Example: Sequential execution and arithmetic
print("Nerdlyy Python Track")
print("Step 1 -> Step 2")
print(2 + 3)Statements run top to bottom; expressions evaluate before print writes them.
Concept Check
How does a Python interpreter run a script?

