Twitter threads unrolled.
This short article teaches you 4 common switches to use in the command line with Python.
This short article teaches you 3 ways of creating a Python dictionary.
This short article teaches you 3 ways of reversing a Python list.
This short article explains a monstrous piece of code that David Beazley wrote.
This short article shows how to chunk iterables into pieces of a fixed length.
This short article shows how to use the module
bisect from the Python standard library.
In this short article I describe how to simplify equality comparisons chained with the operator
In this short article I describe how to use conditional expressions in list comprehensions.
In this short article I show you how to create nested list comprehensions.
In this short article I explain the relationship between list comprehensions and functional programming.
Let me share a tip regarding naming inside list comprehensions.
How do you format list comprehensions that are too long and go beyond the line width?
Let me tell you my rule of thumb for how long a list comprehension should be.
Let me explain why list comprehensions are good and useful.
Let me show you a real life example of what recursion is and how it works.
Here are some numbers on the size of Python and everything you can learn.
This article explains why you should use
isinstance instead of
type and its relationship to Python duck typing.
Learn how strings are ordered and compared in Python.
Let me show you how to do function composition through operator overloading, and other cool tricks!
Join me as we explore what happens when you keep appending to a list you are going over in a
Let me tell you why it is always 100% unnecessary to use a full slice
[:] with a string in Python.
This thread talks about slicing syntax and the full slice
[:] for copying.
This thread goes over a possible Python implementation for the look-and-say sequence.
Learn how to format dates/times with f-strings and %-format specifiers.
What does the Zen of Python 🐍 mean by “Explicit is better than implicit.”?
What does the Zen of Python 🐍 mean by “Beautiful is better than ugly”?
All the references and links regarding my PyCon Sri Lanka 2022 talk.
A cautionary tale of why you should use virtual environments in Python.
An introductory example to
itertools.starmap and an explanation of why it is called “starmap”.
All the references and links regarding my PyCascades 2022 talk.
A couple of analogies I use when thinking about recursion.
A comparison of many possible Python implementations of the sign function.