Foundations

15 labs covering everything from your first print() to building a professional project structure. No experience required.

Labs

#
Lab
Key Concepts

1

print, variables, arithmetic, f-strings

2

int, float, str, bool, type conversion

3

slicing, strip, split, join, format

4

sequences, comprehensions, set operations

5

key-value, Counter, defaultdict, JSON

6

if/elif/else, for, while, break, continue

7

def, args, kwargs, lambda, recursion

8

open, csv, json, pathlib, context managers

9

try/except/finally, custom exceptions

10

import, stdlib, itertools, functools

11

list/dict/set comp, yield, lazy iteration

12

class, self, inheritance, dataclass

13

logging, assertions, unittest, pytest

14

re module, patterns, validation, parsing

15

venv, pip, pyproject.toml, project structure

All labs Docker-verified on Python 3.12.

Last updated