Skip to content

An introductory course to programming in Python

License

Notifications You must be signed in to change notification settings

simennass/intro-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

intro-python

An introductory 2 day course to programming in Python

Daily schedule

Time
09:00-10:30 Lectures/Exercises
10:30-10:45 Break
10:45-11:30 Lectures/Exercises
11:30-12:00 Lunch
12:00-13:30 Lectures/Exercises
13:30-13:45 Break
13:45-15:30 Lectures/Exercises

Requirements

All participants should work in a Linux-based environment (Mac is fine). Participants using a Windows PC should activate the Windows Subsystem for Linux (WSL 2) . While it is technically possible to use Python in Windows it can create problems with certain packages like geopandas.

Day 1

Module 0: Installation (1 hour)

  • Installing Python via Anaconda/Miniconda
  • Working with conda environments
  • Installing packages
  • Jupyter Lab vs VSCode

Module 1: Getting started with Python (2+1 hours)

  • Operators, variables, and data types
  • Lists, tuples, and dictionaries
  • Booleans and conditionals
  • Loops and iterables

Module 2-1: Working with functions (1+0.5 hours)

  • Function declaration
  • Function arguments

Day 2

Recap day 1 (0.5 hours)

Module 2-2: Working with functions (0+1 hours)

  • Function declaration
  • Function arguments

Module 3: Writing good code (2 hours)

  • Single Responsibility Principle
  • Code style
  • (Packaging?)
  • Documentation

Module 4: Errors and exceptions (1+1.5 hours)

  • Difference between errors and exceptions
  • Catching errors and exceptions
  • Throwing custom errors and exceptions

About

An introductory course to programming in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%