Blog

Python tutorials and tips on the Academify blog. Learn programming with examples, exercises, and projects from basic to advanced

Duplicate document icon representing shallow and deep copies in Python
Libraries and Modules
Foto de perfil de Leandro Hirt da Academify

Python copy: Shallow and Deep Copies

Learn Python copy to create shallow and deep copies, replace fields, and avoid sharing nested mutable objects by mistake.

Read more

Reading time: 6 minutes
July 28, 2026
Memory module representing weak references and caches in Python
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python weakref: Weak References

Learn Python weakref to build weak references, automatic caches, observer registries, and finalizers without retaining objects in memory.

Read more

Reading time: 8 minutes
July 28, 2026
Monitor showing binary search and sorted Python lists
Libraries and Modules
Foto de perfil de Leandro Hirt da Academify

Python bisect: Keep Lists Sorted

Learn Python bisect to keep lists sorted, locate ranges, find neighbors, and insert values efficiently with binary search.

Read more

Reading time: 7 minutes
July 27, 2026
ZIP archive icon for a Python zipfile article
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python zipfile: Safe ZIP Archives

Learn how to create, read, validate, and extract ZIP archives with Python zipfile in a predictable and secure workflow.

Read more

Reading time: 4 minutes
July 27, 2026
Software dependency graph and Python task workflow
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python graphlib: Topological Sorting

Learn Python graphlib to order dependencies, detect cycles, and coordinate independent tasks safely in parallel.

Read more

Reading time: 5 minutes
July 27, 2026
Developer implementing a priority queue with Python heapq
Libraries and Modules
Foto de perfil de Leandro Hirt da Academify

Python heapq: Build Priority Queues

Learn Python heapq to build priority queues, find the smallest values, and process tasks efficiently with binary heaps.

Read more

Reading time: 6 minutes
July 26, 2026
Python code for safe context in asynchronous applications
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python contextvars for Safe Context

Learn how Python contextvars isolates request data across asyncio tasks, logs, threads, and tests without unsafe global variables.

Read more

Reading time: 7 minutes
July 26, 2026
Python code using cached_property to store expensive calculations
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python cached_property: Cache Object Values

Learn Python cached_property to store expensive calculations, invalidate values, and prevent stale object caches.

Read more

Reading time: 6 minutes
July 25, 2026