The Teclado Blog

Formatting Integers in Different Bases in Python

In this post we dive deeper into Python's formatting syntax, learning about displaying numbers in different bases. We also make a neat colour converter too!

Nested String Interpolation in Python

In this post we continue looking at formatting, this time exploring nested string interpolation, which we can use to dynamically set formatting options.

Formatting Numbers for Printing in Python

Learn how to leverage Python's detailed formatting language to control how numbers are displayed in your applications.

Python's "Ternary Operator"

Learn about conditional statements in Python: a slightly obscure bit of syntax that allows for succinct conditional logic, particularly during assignments.

Generating a Collection of Random Numbers in Python

In this post we learn about choices and sample: two useful functions in the random module used for generating collections of random values.

The Teclado Blog © 2026