11 posts tagged 'python'

2024

LinkedIn Queens

👑LinkedIn has a daily game called Queens.

Everyday you get a new map with 8 coloured areas and you have to place 8 queens such that there is one queen per row, one queen per column, one queen per colour and no two queens can be adjacent.

The post below …

2023

Monads in Functional Programming

The idea of doing a computation within a special context isn't unique to quantum computing. Functional programming has a concept called the monad that does something similar. This is how it works: you have an input value and you want to perform a sequence of calculations within a certain special …

2023

Configuring NeoVim as a Python IDE (2023)

As I blogged about in the previous two articles, I recently updated my NeoVim configuration for the fourth time. Although it might sound like a lot of config updates, keep in mind that it happened over a period of four years.

  • The first version was a port of my existing …

2023

Fifteen years of Python tutorials

Was browsing through some old bookmarks and came across my Django screencast tutorials that I did for the site ShowMeDo way back in July 2007. These were some of the first video tutorials for Django and got a huge number of views. Crazy to think that it's been 15 years …

2023

Functional Programming in Python

Have you been wanting to explore functional programming style in #python, but never got around to it?

Our Playful Python team created a playground for you using the newly added python support on Code Sandbox. Five hundred and twenty nine people have played around with it so far.

This example …

2022

2022 Year in Review

As we come to the end of 2022 it's time to look back at the year. This was a very productive year for me as I completed a few projects that I had on my list:

✅ Started a tech blog again with Playful Python. There are a gazillion sites that …

2022

Python on the browser? Yes, it works!!

So far, if you wanted to do web development, there was only one choice - Javascript. But that changed last week. Well, at least in a small way. The hot news of the day was Anaconda announcing PyScript -- python on the browser with no install required. That's right, users just have …

2022

When do you need to define your own data types

All programmers are familiar with the common data types found in many languages like integers, strings, floats and so on. After we learn about them, we go about our work, using those data types in our code. But have you ever thought about defining your own data types?

An Example …

2006

Introduction to Recursion

This article used to be 6 part series of articles on recursion that I had on my old blog. I have combined the series into a single article and posted it here. This article is still dated for the 12th of April, 2008, which is when I originally posted this …

2005

3-5-7 (Part 2)

I wrote about the board game 3-5-7 in my previous post.

I wrote this program to as an experiment in AI. A simple board game seemed to be a good way to start. The program implements the minimax algorithm for determining the best move.

3-5-7 is a simple game, so …

2005

3-5-7

3-5-7 is a simple two player board game. There are three rows of coins. The first row has three coins, the second has five and the last row has seven. A player can take any number of coins from one particular row. The player to take the last coin on …