Small games and the code behind them. Short coding lessons with real code and real output.

New Delhi
A Python script can list its own dependencies in a comment. 馃悕 # /// script # dependencies = ["requests"] # /// -> uv run installs it #Python #Coding
1
2
Full video, Packaging with uv: piped.video/iwxg14e4ro4
How to package Python code with uv, in 4 images. 馃悕 Name a command, run uv build, share the wheel. #Python #Coding
1
1
41
A pytest test is just an assert, in 4 images. 馃悕 #Python #Coding
1
1
19
A pytest test is just an assert. 馃悕 def test_add(): assert add(2, 3) == 6 -> assert 5 == 6 #Python #Coding
1
1
19
Fetch JSON from the web with urlopen and json.load, in 4 images. 馃悕 #Python #Coding
1
1
13
Full video, HTTP and JSON APIs: piped.video/etiI3qWhWi0
1
How to call a web API in Python, in 4 images. 馃悕 urlopen the URL, json.load the response: you get a dictionary. #Python #Coding
1
1
5
Fetch JSON from the web with only the standard library. 馃悕 urlopen(url, timeout=10) json.load(r)["title"] -> delectus aut autem #Python #Coding
1
1
42
Full video, HTTP and JSON APIs: piped.video/etiI3qWhWi0
1
Walk a tree left, node, right and get sorted values, in 4 images. 馃悕 #Python #Coding
1
1
10
Full video, Trees and traversal: piped.video/ZYZUSZJeNa4
1
Walk a binary search tree left, node, right and the values come out sorted. 馃悕 inorder(tree) -> [1, 2, 3] #Python #Coding
1
1
8
Full video, Trees and traversal: piped.video/ZYZUSZJeNa4
1
How an in-order walk visits a binary tree, in 4 images. 馃悕 Walk left, print the node, walk right: the values come out sorted. #Python #Coding
1
2
32