Skip to content

Geo-Python-2022/Exercise-3

Repository files navigation

Exercise 3 - For loops and conditional statements (10 points)

The exercise for this week is meant to help you to understand for loops and conditional statements in Python. Below you have a series of problems in which you are asked to edit the notebook files and write the code necessary to produce the desired results.

Completing the exercise

  • Exercise 3 is due by the start of the next lesson (9:15 am, 28 September 2022).
  • Remember to save and commit your changes locally, and push your changes to GitHub after each major change!
  • We are working in pairs on this exercise, and we will only grade the repository of the member of your pair that is responsible for this week's exercise.

Where to find help

Before you start

Clone the Exercise 3 repository

Before starting to work with the problems for this week, you should start a new JupyterLab instance and clone your own Exercise 3 repository (e.g., exercise-3-htenkanen) in the instance using Git as we saw in Lesson 2.

Start working

There are 4 problems in this week's exercise. Problem 4 is optional, but fun!

  1. Problem 1 - Batch processing data files with a for loop (2 points)
  2. Problem 2 - Classifying temperatures (4 points)
  3. Problem 3 - Allocating locations (4 points)
  4. Problem 4 - Nested for loops (optional, 0 points)

About

Exercise 3 in the 2022 Geo-Python course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published