Python’s all() function is so powerful that it was declared part of the built-in library. Understanding how to use this chaining conditional function can make your code more concise, flexible, and *pythonic* to boot!

Python all() function

The Python all() function is a built-in that evaluates an entire collection for truthiness. It can be used in static syntax or more dynamic implementations involving such features as list comprehension and generators. It can be used in combination with other language features to built powerful and succinct conditional statements.


Finding the absolute value has applications in nearly every field where numbers are involved. In this article, we’ll learn how Python celebrates this universal applicability by offering a powerful built-in function for calculating the absolute value of a number.

The Python abs() function is part of the standard built-in functions and provides a utility to calculate an absolute value. This function can be used to convert static values to their absolute value as well as dynamic values. …


Ordinal values are fun ways to find the numerical representation of characters. These numbers can help translate text between machines, encode data across networks, and maybe even create your own secret language! Python’s built-in ord() function makes converting between numbers and characters a breeze!

Python provides a host of built-in utilities for translating between encoded and numerical representations of values, strings, and everything in between. The Python ord function is a built-in utility that, given a single Unicode character, will return its ordinal value.

The term ordinal means countable and in the context of…


Leverage the power of the standard textwrap library to format text like a pro!

Decorative stationary

Text wrapping is a useful tool when processing textual languages in applications of natural language processing, data analysis, and even art or design work. The Python textwrap module provides convenient functions to help create a text wrapping effect.

This module also provides several related functions that can be used to…


Image processing is a breeze in Python when using the Pillow library. However, getting text to play nicely isn’t always an easy task. Learn how to wrap text like a pro and start churning out memes by the thousand in no time flat!

Python provides a medley of string manipulation tools via the standard library. Combine with the text manipulation tools of imaging libraries like Pillow, Python can be an absolute workhorse for creating text-heavy visual media. Even with these tools, text-wrapping can be a challenge. …


Python is the most popular language for financial analysis and comes with many libraries to make things super convenient, efficient, and fast! The one common prerequisite of all is financial data. Luckily, getting financial data in Python is a breeze with the help of several public APIs, free data sources, and well-developed libraries!

Python Financial Data αlphαrithms

Python is often used for algorithmic trading, backtesting, and stock market analysis. In fact, it seems almost the canonical use-case for many tutorials I’ve seen over the years. Getting financial data in Python is the prerequisite skill for any such analysis.

In this article, you’ll learn how to easily get…


Have you ever needed to generate thousands of images with text on them? Maybe you’ve tried to launch a new meme-generating app only to realize JavaScript doesn’t handle imaging the way you’d like. Python’s Pillow library may just be the imaging workhorse you have been looking for!

TL;DR — Using Custom Fonts in Pillow


Facebook recently announced their latest AI-driven project TextStyleBrush, a self-supervised model that can copy the style of text in a photo using a single sample. This tech stands to support breakthrough applications in fields of real-time data analysis, deepfake detection, and consumer-level visual imaging technologies.

Exampls of Facebook’s TextBrushStyle

The technology behind TextStyleBrush was detailed in a recently-made-public paper from Facebook’s own AI Lab. Facebook details the novelty of TextStyleBrush being found in the ability to address a wide range of general-purpose uses. Previous image-recognition software was very domain limited, restricting its adoption within commercial applications.

Praveen Krishnan, lead…


The Python dictionary is a powerful data structure of key-value pairs indexed by a non-mutable data type. They are inherently unordered though will preserve the order by which items are added. There is no way to sort a python dictionary directly, so we must get a little creative.

Python Sorted Dictionary Banner — Overcoded

Fortunately, we can sort a Python dictionary by converting it to a sortable type such as a list. This involves an intermediary step, or a bold one-liner, but is relatively straightforward. I’ll walk you through some basic gotchas, considerations, and notable options. …


The role of histamine in our bodies is complex, to say the least. The endeavor to understand how genetics and nutrition influence this widely-used molecule may prove fruitful in addressing issues such as Histamine Intolerance, Mast-Cell activation syndrome (MCAS), and a myriad of other conditions.

Histamine’s broad role in our bodies makes it relevant to nearly every major system. As such, dysregulated histamine can impact nearly every major system. …

Zack West

Entrepreneur, Computer Science Student, Designer, and self-confessed health nut that enjoys productivity hacks, developing better habits, and Mother Nature.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store