PY
Python — Beginner
Start from zero: install Python, run your first program, and learn the building blocks of every program — values, decisions, loops, functions, collections, files and modules.
Lessons
- 1Setting up PythonInstall Python, use the interactive shell, create a virtual environment and run a script.
- 2Variables, Types & StringsNumbers, text, booleans, None, f-strings and converting user input.
- 3Decisions & Loopsif / elif / else, comparison and logical operators, for loops with range, and while.
- 4Functionsdef, parameters, default values, return values, docstrings and type hints.
- 5Strings & Text ProcessingIndexing and slicing, string methods, f-string formatting, and cleaning messy text.
- 6Lists, Tuples, Dictionaries & SetsStore groups of values, loop over them and build new ones with comprehensions.
- 7Files, Modules & pipRead and write files safely, split code into modules, and install packages.
- 8Dates & Timesdate, datetime and timedelta; parsing and formatting; time zones and East Africa Time.