summaryrefslogtreecommitdiff
path: root/tutorials/1_07_control_structures.md
blob: 245ef5a206ffba1caceceea357813ecca92e0795 (plain)
1
2
3
4
5
6
7
8
9
10
# Control Structures
Control structures allow us to control the flow of execution in a Python program. The two main types are **conditional statements (`if` statements)** and **loops (`for` and `while` loops)**.

## Conditional statements
Conditional statements let you execute code based on different conditions using if, elif and else statements.




## Loops