Digital Applications in Assyriology Nordic Summer School 2022

Training documents and materials for the DAA 2022, held at Uppsala University in Sweden 1-5 August

View this repository on GitHubglow-gh/daa

Monday 1 August

Tuesday 2 August

Wednesday 3 August

Thursday 4 August

Friday 5 August

Python

Introduction

This module is designed to introduce you to the programming language Python. We will:

Tasks

If there are any issues with these tasks, please send an email to Ellie (eleanor.bennett@helsinki.fi).

Applications

You can also install the software during the ‘application dropin’ slot on Monday 01.08.2022.

Module Outline

  1. Short lecture (also available as a pdf) explaining what Python is, introducing IDLE and Jupyter Notebooks, and how Python is used in digital humanities.
  2. Classic ‘Hello, world!’ exercise. We will learn the difference between intergers and strings, the importance of defining entities, and the command ‘print’. We will also learn how to save a piece of Python code.
  3. Open, read, and find all instances of words in a .txt file. You will be introduced to packages. We will open a sample .txt file using Python. We will learn the difference between ‘opening’ and ‘reading’ a file in Python. You will then be introduced to Regular Expressions (Regex), which will be used to search for all instances of a specific word.
  4. Run your own basic statistical analysis on the example text.
  5. Introduction to code that will allow you to manipulate .csv files.

Further Resources

Python is widely used, so there are many tutorials and guides and available for free. If you would like to use Python in the future, I recommend shopping around to see which guides suit your learning style best. Below is a short list of the resources that have helped Ellie.