Start here in Python

The most useful guides in this topic, not just the most recent.

50+ Free Guides

Python Guides & Tutorials

Learn Python the right way — syntax, data structures, OOP, libraries, APIs and project ideas that build a hire-ready portfolio.

Python articles

Python
6 May 2026 6 min

Python Data Structures: A Complete Reference

A reference to Python's data structures organised by the job each does best: the four built-ins, then deque for queues, Counter for counting, defaultdict for grouping, heapq for priorities and top-k, bisect for sorted lookups and namedtuple or dataclass for records, with the cost of each common operation.

GloryTecks Team
Read
Python
6 May 2026 6 min

Async Programming in Python: asyncio Explained

What asyncio actually does, shown with runnable timings: why three one-second waits finish in one second, how tasks, gather and TaskGroup differ, how to add timeouts and a concurrency limit, and the single blocking call that silently makes async code sequential again.

GloryTecks Team
Read
Python
6 May 2026 7 min

Building a CLI Tool in Python with argparse

A step-by-step build of a small command-line tool with Python's argparse: positional arguments and typed options, choices and flags, subcommands, what happens on bad input, how to test the parser, and how to install the tool as a command with pyproject.toml.

GloryTecks Team
Read
Python
6 May 2026 6 min

Environment Variables and Secrets in Python Apps

A practical setup for configuration and secrets in Python applications: reading typed settings from environment variables and failing fast when one is missing, .env files that never reach Git, keeping secrets out of logs and Docker images, and what to do when a key leaks anyway.

GloryTecks Team
Read
Python
6 May 2026 7 min

List Comprehensions in Python: A Complete Guide

Everything about list comprehensions in one place: how the syntax maps to a loop, where if and if-else go (and the SyntaxError when they are swapped), nested loops in the right order, dict and set comprehensions, generator expressions for large data, the walrus operator, and the point where a plain loop reads better.

GloryTecks Team
Read
Python
6 May 2026 7 min

Python Best Practices: Writing Pythonic Code

What "Pythonic" means in practice, as before-and-after pairs you can run: looping with enumerate and zip, unpacking, dictionary and Counter idioms, building strings, checking None and emptiness, handling files, plus naming, function design and the formatter, linter and type checker that keep code consistent.

GloryTecks Team
Read