Skip to content

Python · Machine Learning

From the kitchen

Quality, author-led articles on Python & machine learning. Learn how to eat through topics, calmly, deeply, and without the noise.

145 articles Community authors Always free

More from the kitchen

Fresh articles, served often.

game development

Procedural Generation Basics: Random Map Generation in Python

In game development, Procedural Generation is the technique of using algorithms to create game content automatically rather than manually. While complex games like Minecraft…

Abdur-Rahmaan Janhangeer

Chef

game development

Tile-Based Game Map Rendering with Processing.py

Whether you’re building a classic RPG or a puzzle game, tile-based rendering is one of the most efficient ways to create large, structured game worlds. Instead of drawing every pix…

Abdur-Rahmaan Janhangeer

Chef

game development

Building a Dynamic Polygon Drawer in Processing.py

Have you ever wondered how vector drawing tools allow you to click and create complex shapes? In this tutorial, we will build a simple Polygon Drawer using Processing.py. This proj…

Abdur-Rahmaan Janhangeer

Chef

software engineering

How to Escape Curly Braces in Python String Formatting

When using Python’s string formatting methods, curly braces {} are special characters used as placeholders for variables. But what happens when you actually want to print a literal cur…

Abdur-Rahmaan Janhangeer

Chef

computer vision

Machine Learning 101: Identifying Kitchen Cutlery with K-NN

Machine Learning can often feel like a “black box” of complex math and scary terminology like “Tensors” and “Neural Networks.” But at its core, Machine Learning is just applied statistics. …

Abdur-Rahmaan Janhangeer

Chef

data visualization

How to Annotate Each Point in a Matplotlib Scatter Plot

One of the most frequent questions when working with Matplotlib is: “How do I label each point in my scatter plot?” While plotting coordinates is straightforward, adding de…

Abdur-Rahmaan Janhangeer

Chef

programming languages

Building an Indentation Analyser in Python: A Comprehensive Guide

In many programming languages, like C or Java, scope is defined by curly braces {}. However, languages like Python, Pug, and Haskell …

Abdur-Rahmaan Janhangeer

Chef

legal

data usage policy

we have drafted our data usage policy and taken appropriate measures to ensure transparency. it can be found here…

Abdur-Rahmaan Janhangeer

Chef

programming languages

Building a Lexer in Python: A Step-by-Step Tutorial

Understanding how to build a lexer (lexical analyzer) is a rite of passage for many programmers. It opens up a world of possibilities, from creating your own Domain Specific Langua…

Abdur-Rahmaan Janhangeer

Chef

programming languages

Case Study: Building greenBerry, a New Programming Language in Python

What does it take to create a programming language from scratch? While many think of complex C++ compilers, you can actually build a functional (though simple) language using Python. This is the st…

Tim thuma

Coder

gui development

Troubleshooting Tkinter: Why is My GUI Output Not Showing?

Tkinter is the most common way for beginners to start building GUIs in Python. It’s powerful, but it can be frustrating when you write your code, run it, and… nothing happens. Or perhaps the window…

Abdur-Rahmaan Janhangeer

Chef

game development

Creating Smooth Mouse Trails in Processing.py using OOP

In creative coding, adding a “trail” effect can transform a simple animation into something dynamic and visually appealing. A trail is essentially a visual history of where an object has been. In t…

Abdur-Rahmaan Janhangeer

Chef