These materials introduce fundamental concepts of programming through the Python programming language. Originally incorporated into hands-on workshop delivered as part of the NC State Univeristy Libraries' Data & Visualization Workshop Series, these materials provide a core understanding of variables, data types, control flow, functions, and basic data structures.
To get started, click on one of the Open in Colab buttons below to open an interactive Python notebook in the browser-based Google Colaboratory environment. Each notebook includes explanations, runnable example code, and activities. Each notebook is accompanied by a completed notebook that includes all example code and filled activities. The completed notebook can be used as a reference and to check answers to activities. You can find a link to the completed notebook at the end of each notebook.
This Jupyter Notebook covers basic Python syntax, fundamentals of running code in a notebook environment, variables, data types, and errors with several hands-on activities.
This Jupyter Notebook covers control flow (conditional statements and for loops) with several hands-on activities.
This Jupyter Notebook covers functions and reading and writing to files with several hands-on activities.
These materials were developed by Claire Cahoon and Walt Gurley from the NC State University Libraries. Materials are based on workshops by Scott Bailey, Ashley Evans Bandy, Natalia Lopez, Vincent Tompkins, Javier de la Rosa, Peter Broadwell, and Simon Wiles.