Python is the leading language for data science, automation, and AI — clean syntax and growing demand in South Africa.
Start with Lesson 1Each lesson includes a full explanation, code examples, a practice task, common mistakes, and a mini quiz.
Python — popular, readable, powerful. Used in data science, AI, and web development....
Lesson 1Install Python, choose an editor, always use virtual environments....
Lesson 2Indentation, colons, f-strings — Python's core rules....
Lesson 3Python variables need no type declaration....
Lesson 4int, float, str, bool, None — Python's core types....
Lesson 5Python adds // floor division and ** power....
Lesson 6if / elif / else — Python's clean conditional syntax....
Lesson 7for iterates sequences; while iterates on a condition....
Lesson 8Ordered, mutable, any types — Python's most versatile collection....
Lesson 9Immutable sequences — for data that should not change....
Lesson 10Unordered unique collections — fast membership testing....
Lesson 11Key-value stores — Python's most important data structure after lists....
Lesson 12def, default params, *args, **kwargs....
Lesson 13Any .py file is a module. Import standard library or your own code....
Lesson 14open() with with statement — clean, safe file IO....
Lesson 15try/except/finally — Python's error handling....
Lesson 16class, __init__, self — Python OOP fundamentals....
Lesson 17@property, @classmethod, @staticmethod....
Lesson 18Python supports single and multiple inheritance; super() calls the parent....
Lesson 19datetime module — dates, times, durations....
Lesson 20CSV reading, statistics module, and introduction to pandas....
Lesson 21