Python Lessons

This page contains links to all of the lessons that form part of our introductory ‘Code Camp’ for first-time programmers. You should have already completed the Setting Up page and have Anaconda Python and Jupyter read to go!

About the Lessons

The lessons are all hosted on a code-sharing web site called GitHub which allows us to create and maintain versions of the introductory notebooks. But to make life easy for you we are linking to each notebook separately here so that you can download and save the file directly to the right location.

As noted on the ‘Getting Started’ page, we suggest you create a folder named ‘Code Camp’ in your Dropbox folder and save all of these notebooks into that folder. Note: you will need to Right+Click/Ctrl+Click on the links below in order to save them to your Code Camp folder.

Very Important Note: Kernel not found

Because of some changes to the way that Anaconda Python handles Python 2 and Python 3 (both can be used together on the same computer and our own computers have been upgraded from Anaconda 3 to Anaconda 4) when you start up one of the notebooks above you may see what appears to be a very serious error: “Kernel not found”! Sounds scary, what to do???

Kernel-not-found.png

This is really easy to solve: notice that you’re being invited to select a kernel from a drop-down menu on the right. If you click on the drop-down you will probably have a very short list (possibly of just one or two options) from which to choose. One of the following three options (in this order of preference) will almost certainly work: “Python 2”, “Python [Root]”, or “Python [Default]”.

What is happening is that a computer can be configured to run many different versions of Python (with many different modules… more on what those are later). This is asking you to pick which version you want to use. Right now, it doesn’t matter as long as you can pick a kernel and then click “Set Kernel”.

If you still have issues, there’s Slack.

Copyright

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.

Bonus!

More about Git & Github

Github (in an absolutely simplistic description) is a webiste used to store versions of programming files. Think about it as a “Dropbox for programmers”. Github (and Git the system it uses behind the scene) do much more than this, but for the moment being let’s stop here. If you are interested in learning more about Git and Github check out these resources: