An on-line coding primer for Python produced by King's College London's Department of Geography
Welcome! This repository uses interactive Jupyter notebooks to teach you the basics of how to code in Python. Our focus is on simple examples that (we hope) speak to students who are not Computer Scientists by training. Perhaps you dabbled a bit in High School? Perhaps you've never done any programming ever? Whatever, we're here to help!
The list of topics include:
- Notebook-1: Introduction
- Notebook-2: Thinking like a computer
- Notebook-3: The Basics (Variables, Operators and Precedence)
- Notebook-4: Dealing with Errors & Debugging
- Notebook-5: Truth & Conditions (Comparisons, Conditions and George Boole)
- Notebook-6: Recap 1
- Notebook-7: Lists
- Notebook-8: Dictionaries
- Notebook-9: Loops and Iteration
- Notebook-10: Recap 2
- Notebook-11: Functions (Automate All the Things)
- Notebook-12: Packages (Bundles of Functions)
- Notebook-13: Classes and Objects
- Notebook-14: The Terminal (Working Without Buttons)
- Notebook-15: Wrapping Up (A Matter of Style)
There are several ways to run these notebooks, but the most straightforward way to get started is using Binder.
By the end of the course, you will have a basic understanding of:
- The rationale behind the usage of computers and computational methodologies
- The way computers "think" and "work"
- How computers programs are structured and how to execute them
- The fundamental concepts of programming (in Python) such as the concept of
variable
,iteration
,data structure
,list
,object
,loop
,function
etc., etc. - How your newly acquired coding skills can help you be effectively lazy.
The material contained in this repository is heavily inspired by the great work of Dani Aribas-Bel:
Arribas-Bel, D. (2016). Geographic Data Science’15. http://doi.org/{10.5281/zenodo.46313}
The following individuals have contributed to these teaching materials:
The content and structure of this teaching project itself is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 license, and the contributing source code is licensed under The MIT License.