1. Introduction to Python
1.1 What is Python?
Highlights & notes
Select lesson text to highlight it, or tap Add note.
Bookmarks
Bookmark a lesson to see it here.
Python is like giving a robot chef a recipe. It follows every step, in order, every time.
- You write steps in almost-English words.
- The computer does them top to bottom.
- Same recipe = same result, every single time.
Thumb rule: Python reads your code from top to bottom, one line at a time.
Watch it run · 1
print("Hello")Hello
Watch it run · 2
print(2 + 3)5
Python is a programming language: a way to give the computer step-by-step instructions in words that read almost like English. Think of a recipe: you write the steps once, and the computer follows them exactly, every time.
In data engineering, Python does three jobs again and again, known as ETL:
- Extract: read raw data, such as a CSV file or an API response
- Transform: clean it, for example turning the text "12" into the number 12
- Load: save the clean data where another system can use it, such as a database
You don’t need to install anything to start. The code boxes on this site run real Python in your browser.
Why Python for data jobs?
- Easy to read, so beginners learn it fast
- Huge library support: pandas, PySpark, Airflow and more
- Used by data teams in almost every company
Python follows your instructions exactly and in order. If a result is wrong, check the steps you wrote, one line at a time.
How it fits together
- Extract raw rows
- Transform values
- Load clean rows
Step through the code
Python
raw_count = "12"count = int(raw_count)print(count + 3)
Output
15
Practice in Python ✓ Solved
Turn raw_count into an integer, add 2, and print the result.
Expected output
10
Reference solution
raw_count = "8"
print(int(raw_count) + 2)
Question 1 · Easy
What does the T in ETL stand for?
Question 2 · Medium
raw_count = "12". What does print(int(raw_count) + 3) show?
Question 3 · Hard
raw_count = "12". What does print(raw_count + "3") show?
Key takeaways
Python can read, transform, and write data in repeatable steps.
Save your progress
Start free and your progress, code and notes stay saved. Free for 1 month, no card needed.
Start free Log in