1. Introduction to Python#

  • Why use scripting languages?

  • Python and the Jupyter notebook

  • Variables, using functions, and types

  • Loops and control

  • Data structures: lists, dictionaries, and sets.

Contents#

Total time: 2 hrs

Exercises#

Classroom exercises are grouped together at the end of the module: 1.9 Classroom Exercises. Each exercise is labelled with any sections whose contents are relevant. We recommend that instructors schedule the exercises to be done in groups during breaks in the taught content. However, it is important that participants also have some time away from their screens. Exercises can also be left as self-paced homework assignments if preferred.