/Intro-to-Python-September-2018

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

Introduction to Python, September 2018 Edition

This Python Beginner's workshop will be running from 4 pm to 8 pm on Tuesday the 4th of September, and Thursday the 6th of September, at the CoLab training space, also known as Room 329, Level 3, Eastern Resource Centre, Building 171. Enter at the glass doors next to the Resource cafe, head to the back of the lobby (keep the ERC library entrance on your left) and enter at back right.

This workshop is designed for those trying to explore and learn about the wonders of Python for the very first time. The content is suitable for a range of learners - from those who have never programmed before, to those who are already proficient in other coding languages.

This workshop will be using Python 3.6 inside the Jupyter Notebook. You can find installation instructions inside the Python_Installation.md instruction file.

Note if you are having trouble installing Python, feel free to show up 15 minutes early so I can help you with the installation

While we will be learning in the Jupyter environment, you may find this a bit heavy for your day-to-day coding life. There are a number of light-weight text editors and Integrative Development Environments (IDEs) freely available on the internet. The primary difference is that IDEs allow you write and run your code all within the same program. On the other hand, text editors only allow you to write the code - to run them you have to use the command line. Either of these options can be more appropriate for you, depending on how you want to use them.

IDEs:

  • Spyder. This comes installed with the Anaconda package, and you should be able to find it in your system's programs list after installation
  • Pycharm. This one has a free community-edition license, but anybody working on research which could be patented, beware! The pycharm owners dislike the free version being used on for-profit projects, and the licensing reflects this.

Text Editors:

  • Atom. Free. No ads. Allows Git/Github integration
  • Sublime Text. Unlimited free license. Occasional pop-up ads.

You will also find that the content for the workshop is available in both the markdown (*.md) format, for online viewing, and as an iPython notebooks (*.ipynb), which will contain useable code fragments, challenges and explanations for the workshop content. This content is mostly adapted from "Python Basics" chapters of Dan Sandiford's Python Gitbook, as well as from previous iterations of this workshop.


Workshop Schedule

The basic progression for the workshop should be as follows:

Tuesday the 4th of September

Time Activity
4.00 pm - 5.30pm Intro to Jupyter and Python
5.30pm - 5:40pm Short Break
5:40pm - 7.00pm Lists
7.00pm - 7.15pm break
7.30pm - 8.00pm Dictionaries

Thursday the 6th of September

Time Activity
4.00 pm - 4.30pm recap
4.30pm - 5.30pm if statements
5.30pm - 5.45pm Tea Break
5.45pm - 7.00pm loops
7.00pm-7.30pm functions
7.30pm-8pm Where too next