Getting started with Python
Trainer: Iris Diana Yu, Andrian Yang
Overview: This session is a beginner-friendly intro to Python programming language. It will cover the basic syntax and then dive into how classes and objects work in Python.
Learning outcomes
By the end of this section, you will be able to:
- Familiarise yourself with the basics of Python syntax
- Explore and interpret data types in Python
- Write simple functions and loops
Materials
The trainers are working on a GitHub repository where the code will the stored and freely accessible. In the meantime, you can access the Google Colab version of the code here:
Never used Google Colab before?
Google Colab is a free cloud-based service that allows you to write and execute Python code in your web browser, similar to what Google Docs allows for writing. To run and modify the code provided here, you can:
- Download the Colab file as a .ipynb file, and open it with Jupyter Notebook. You can then work on the code on your own machine. If you choose this option, you will have to manage the code dependencies: you can follow the instructions on this GitHub repository to download a container that will provide you with everything needed for the code to run.
- Create your own private copy of the Colab in your Drive
Further materials and guidelines on Python 3 can be found on its official website. You can also find more information on Jupyter notebook and how to install it in the “Installing Jupyter” page of their website.