Tests and Loops
Before starting
- Download this Jupyter notebook
- Connect to the SSP Cloud
- or another platform (ENSAI Jupyter, Jupyter Lab, Google Colab, Kaggle…)
- Import the .ipynb file
1 Conditional structures and loops
In this Notebook, we will cover the following topics:
- if, else structures
- for loop
- while loop
- break and continue statements
2 Conditional structures
We will test different Boolean conditions (see Notebook 1) using the keywords: if, else and elif.
The principle is the following: