Lecture¶
Lesson 3.1 - Definite loops
Dave Whipp & Henrikki Tenkanen, University of Helsinki @ Geo-Python channel on Youtube.
Contents:
- 00:05 - Lesson 3 overview
- 02:05 - Main points from last week’s exercise (Exercise 2)
- 12:52 - Definite loops (for loop)
- 24:28 - Every day example of for loop
- 25:25 - Counting letters using for loop
- 34:45 - Using range() function with for loop
- 44:13 - Start / stop at certain numbers + skipping numbers with range() function
- 49:08 - Iterating over a list of values and updating them
- 56:25 - Using len() function in for loop to keep track of the length of the list
- 1:09:55 - Adding new values to list and iterating over them
Lesson 3.2 - Conditional statements
Dave Whipp & Henrikki Tenkanen, University of Helsinki @ Geo-Python channel on Youtube.
Contents:
- 00:05 - Going through the poll question
- 04:49 - Conditional statements
- 07:48 - Every day example of conditional statement
- 11:46 - Else if statement (elif)
- 16:14 - Comparing values
- 28:38 - The benefit of using elif instead of multiple if statements
- 32:37 - Combining multiple conditions with and/or operators
- 38:07 - Every day example of multiple conditions
- 42:55 - Overview of Exercise 3