How to delete files and directories in Python using os and shutils modules
How to in Python articles
What is a working directory (CWD), and how to get it and change it in Python?
We look at three ways to read directory content using the built-in os module.
There are many ways to filter a list in Python. What are they and which one is the best?
Can we avoid a loop and keep its efficiency when we want to get the first matching item in the list?
What is the best way to flat a list of lists?
What is the best way to merge two or more dictionaries into one?
List comprehensions are a fantastic tool to work with lists. Is it possible to create a list of unique items with list comprehension?
Learn when to make a new .py file for a Python project and how to split and organize code.
Join the newsletter
Subscribe to get new articles about Python, code and programming into your inbox!