Latest articles

Why is the first index of the array (list) 0?

The index of the first item in the array (list) is 0. This article explains why that is.

Read more

Lists are arrays in Python

Lists in Python are actually arrays - with all the consequences.

Read more

Tuple comprehensions in Python

Python does not have tuple comprehensions. But there is a way.

Read more

How nested comprehensions work in Python

We can nest comprehensions the same way as we can nest for loops. In this article, we explain how it works.

Read more

How to use dict comprehensions in Python

What are dict comprehensions? How do they differ from list comprehensions, and when are they useful.

Read more

How to use set comprehensions in Python

What are set comprehensions? How do they differ from list comprehensions, and when are they useful.

Read more

Why should we use comprehensions in Python?

There are at least three good reasons why we should use comprehensions in Python. Let's see what they are.

Read more

How do list comprehensions work in Python

A detailed explanation of how list comprehensions work in Python. What's their purpose. When to use them and when not to.

Read more

How to delete files and directories in Python

How to delete files and directories in Python using os and shutils modules

Read more

How to get and change the working directory in Python

What is a working directory (CWD), and how to get it and change it in Python?

Read more

Join the newsletter

Subscribe to learn how to become a Remote $100k+ developer. Programming, career & Python tips.