Introduction to Python




Repository: GitHub

Description

This tutorial is comprised of a series of Jupyter notebooks with simple demonstrations and exercises.

All code blocks are provided in Python (support for >=3.5) and the number of external packages required to run the examples has be kept to a minimum. All of the code has been clearly presented inside the notebook at least once to avoid the use of any “black boxes” for solving the problems presented.

Contents

Requirements

In order to run the tutorial notebooks tutees will need to have the following installed:

Notebooks

Tutorial 1: Beginner Topics

The objective of this tutorial is to provide a first look at Python for beginners. The level is aimed at individuals with little or no experience whatsoever with Python. Experienced users are unlikely to benefit from this tutorial.

  1. Table of Contents
  2. Native Python
  3. Basic Numpy
  4. Matplotlib
  5. Other Packages
  6. Answers to Exercises

Tutorial 2: Intermediate and Advanced Topics

The objective of this tutorial is to provide a more in-depth look at object-oriented and pythonic coding. The level is aimed at individuals with some experience with Python and good knowledge of basic object types. This tutorial will likely benefit all except the most advanced users.

  1. Table of Contents
  2. Pythonic Thinking
  3. Numpy
  4. Pandas
  5. Scipy-Cosmo
  6. The Anatomy of a Python Class: Part I
  7. The Anatomy of a Python Class: Part II
  8. Answers to Exercises