1.3 Little Control Structures

1.3 If-statements and for loops

We will soon come back to real-life datasets. But before that, we need to introduce a few more aspects of Python, the programming language which you might need in data analysis tasks.

The first topic is control structures.

Control structures execute a piece of code based on a condition. You can recognize them in most programming languages by the keyword if. In Python, they look like the following.

python

More on these control structures can be found in the notebook orĀ Google Colab.

Check if you got it.