Batching data can be used for many things. Sending data in buffers of 1024 bytes over the network, distributing cards in a game or getting data chunks from binary formats. In this video, you learn how to group RGB data from an image bitmap Byte Array
C H A P T E R S
0:20 The problem with byte arrays
1:12 Bitmap RGB values as bytes
2:00 Convert list to matrix with for-loop
3:24 itertools.batched function in Python 3.12
M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Enroll in my "Building self driving cars in Python from Scratch" course: https://www.pythonforeveryone.com/pyt...
#itertools #batched #python