Skip to content

Commit

Permalink
Update chapter_2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EiseWN authored Sep 28, 2023
1 parent 99c4af0 commit 3816700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/practicals/chapter_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ _Please add this script to the folder that you will zip and send to us._

In a simple program, the commands are executed one after the other, independently from the output of the previous one. However, it is sometimes necessary to include some sort of decision-making in the programme. For example, we can decide to compute sediment transport using different predictors depending on the sediment characteristics and flow conditions. The programme should therefore be able to choose the appropriate calculation and forgo the others. It is also sometimes required to repeat a sequence of commands several times, until a certain condition is reached. The order in which commands or groups of commands are executed, is also called the *flow of the program*, and can be controlled in several ways in Python. In the following sections, the three basic flow control methods will be presented: if-statements, for-loops and while-loops.

## 2.3 If-statements
## 2.3 IF-statements

**Purpose:**

Expand Down

0 comments on commit 3816700

Please sign in to comment.