// blog

Articles

// Modules & Packages
Modules: Code That's Already Written

The problem...
You need a random number. You need today's date. You need the square root of something.
You could write the code yourself. But someone already did — and did…

06 May 2026 2 min read files [0] comments [0] 17 views
// Modules & Packages
Dates, Times, and Timestamps in Python

The idea
You've already seen datetime in action — the Daily Notes project used it to timestamp every entry.
Now let's look at what it can actually do.
Importing datetime

06 May 2026 2 min read files [1] comments [0] 17 views
// Modules & Packages
statistics — What Your Data Is Telling You

The idea
You have a list of numbers. Scores, prices, temperatures, times.
Raw numbers tell you something. But averages, medians, and spreads tell you more.
Python's statistics …

06 May 2026 1 min read files [1] comments [0] 17 views
// Modules & Packages
Timing Your Code with the time Module

The idea
datetime tells you what time it is. time tells you how long something takes — and lets you control when your program runs.
Two functions. That's most of what you'…

06 May 2026 1 min read files [1] comments [0] 17 views
// Modules & Packages
Two Tools That Make Dicts Smarter

The idea
You know dicts. You know how to build them, read them, modify them.
The collections module has two tools that extend what dicts can do — and eliminate two pattern…

06 May 2026 2 min read files [1] comments [0] 17 views
// Modules & Packages
Built-in String Constants

The idea
You need all lowercase letters. Or all digits. Or every punctuation character.
You could type them manually. Or you could let Python hand them to you.
The constants
i…

06 May 2026 1 min read files [1] comments [0] 17 views
« first« ← prev 1 / 2 next → last »»