Python Intermediate

This is where your Python starts to look like a pro wrote it. Sixteen tutorials cover modules, packages, iterators, generators, closures, decorators, context managers, regex, the collections module, datetime, and logging. These are the tools that show up in every serious codebase.

Python: Datetime and Time (Dates, Timezones, Formatting)

You stored a user’s signup time as plain text, the app shipped, and now a customer in Pune swears they signed up “yesterday” while your logs say “today”. Welcome to dates and times. The Python datetime module is how you stop guessing: it gives you real date objects, clean formatting, safe parsing, time math, and timezones that actually behave. “Storing a time without its timezone is like writing down a phone number without the country code. It looks fine until ... Read More

Python: Logging Levels, Handlers, Formatters

Python logging, explained the simple way: understand log levels, configure handlers and formatters, send logs to both a file and the console, rotate files so they never fill the disk, and pick up the patterns that move you from amateur print() debugging to the real thing. “Adding manpower to a late software project makes it later.” Fred Brooks, The Mythical Man-Month Last Updated: July 2026 | Tested on: Python 3.14.6 | Difficulty: Intermediate | Reading Time: 15 minutes You are ... Read More

Python: Regular Expressions, Patterns, Groups, Lookaheads

This is the complete Python regex reference: every pattern syntax, character class, quantifier, group type, lookaround, and re module method for regular expressions in Python, each with a tested example. It is the cheat sheet you bookmark and keep coming back to. “Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.” Jamie Zawinski Last Updated: July 2026 | Tested on: Python 3.14.6 | Difficulty: Intermediate | Reading Time: 13 minutes ... Read More