-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy path03_week.Rmd
More file actions
20 lines (14 loc) · 1.04 KB
/
03_week.Rmd
File metadata and controls
20 lines (14 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 3 Control Flow in Python
<div id="buttons">
<a class="btn btn-primary btn-lg" role="button" href="lectures/03_week.html">Lecture Slides (html)</a>
<a class="btn btn-secondary btn-lg" role="button" href="https://github.com/ASDS-TCD/POP77001_Computer_Programming_2021/blob/main/lectures/03_week.ipynb">Lecture Slides (ipynb)</a>
<a class="btn btn-success btn-lg" role="button" href="https://github.com/ASDS-TCD/POP77001_Computer_Programming_2021/blob/main/labs/03_week.ipynb">Lab Exercise (ipynb)</a>
<a class="btn btn-secondary btn-lg" role="button" href="labs/03_week.html">Lab Exercise (html)</a>
</div>
---
In this week we will focus on the key ways of controlling the flow of programs in Python. We will look at branching and loops, common for all programming languages and the details of their design in Python. Several Python-specific mechanisms of control flow, such as list and dictionary comprehensions will be discussed.
## Readings
- Guttag. Chapters 2.3, 2.5-2.6
## Lab
- Conditional statements and iterations
- List and dictionary comprehensions