Bookmarks

🐍 Python Basics • 10 Chapters

Python Basics for PySpark

Learn Python fundamentals for PySpark — from variables and data types to OOP and mini-projects, with hands-on examples and real outputs.

Learning Path

Follow in order — each chapter builds on the last.

01

Python Basics

Features, variables, naming, PEP8, comments, indentation — the foundation.

📘 6 topics~20 min
Explore →
02

Data Types & Strings

int/float/bool/str, slicing, every string method with before/after.

🔤 8 topics~35 min
Explore →
03

Operators & Casting

Arithmetic, comparison, logical, identity, casting — with truth tables.

➕ 6 topics~25 min
Explore →
04

Collections

List (mutable ops), tuple, dict (nested JSON-like), set.

🗂️ 12 topics~45 min
Explore →
05

Control Flow & Loops

if/elif, while, for, break/continue/pass, input + f-strings, login retry loop.

🔄 7 topics~30 min
Explore →
06

Functions & Comprehensions

def, *args/**kwargs, lambda + map/filter/reduce, list/dict/set comps, flattening.

λ 10 topics~50 min
Explore →
07

OOP

Classes, encapsulation (private __balance), inheritance (5 types), polymorphism, abstraction — merged duplicates.

🏛️ 8 topics~55 min
Explore →
08

Advanced

Exceptions, files, regex (phones/emails), JSON, APIs, decorators, generators.

⚡ 7 topics~50 min
Explore →
09

Mini Projects

Password generator, banking CLI (7 ops), bubble sort visual, turtle race — with outputs.

🛠️ 4 projects~40 min
Explore →