CDH-cookbook

Python Beginner Course

The beginner Python course has nine short lessons focused on learning the syntax of the Python programming language. These lessons develop the skills necessary for independent coding and more advanced learning. At the end of the course an additional lesson teaches one how and when to integrate computer programming into Humanities research programmes.

If you’re completely new to Python we suggest you take your time working through each lesson. There are homework exercises at the end of each lesson, and solutions to these exercises are provided on separate pages. We encourage you to attempt the exercises independently and then check the solutions to solidify your skills.

In the Capstone Lesson you will be supported in writing your own self-contained program to analyse a set of texts using some basic Natural Language Processing methods.

Lessons

  1. Introduction to the Python Language
  2. Fundamental Commands and Actions
  3. The Mechanics of the Python Language
  4. Milestone Lesson
  5. Functions and Object-Oriented Programming
  6. Further Loops and Conditionals
  7. File Handling Essentials
  8. Capstone Lesson: Using Python in the Humanities
  9. Concluding Lesson

Homework Solutions

Additional Lesson

The Role of Programming in the Humanities