Session on Python, a general-purpose programming language used for a wide variety of computational tasks.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 13 commits ahead of smythp:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Introduction to Python

Python is a general-purpose programming language that is suitable for a wide variety of core tasks in the digital humanities. Learning Python fundamentals is a gateway to analyzing data, creating visualizations, composing interactive websites, scraping the internet, and engaging in distant reading of texts.

By the end of this workshop, participants will:

  • Understand what Python is and, in general terms, what it can do.
  • Run Python programs, both by interacting directly with the interpreter and by preparing and running scripts.
  • Distinguish among five core data types—integers, floats, strings, booleans, and lists.
  • Become familiar with core programming concepts, including variables, loops, and conditionals.
  • Engage with error output and use the internet and documentation to independently research language features.
  • Learn how to find and import code from external sources to solve more complex problems.

Get Started >>>
Glossary >>>

Interacting with Python
Running scripts
Errors in Python
Lists and Loops
Using Google
A little motivation
Objects in Python
Python resources

Session Leader: Patrick Smyth

Creative Commons License

Digital Research Institute (DRI) Curriculum by Graduate Center Digital Initiatives is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at When sharing this material or derivative works, preserve this paragraph, changing only the title of the derivative work, or provide comparable attribution.