Skip to content
Basic Python learning - notebooks
Jupyter Notebook Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
code
datasets
images
.gitignore
LICENSE
Module-01-interactive.ipynb
Module-02-interactive.ipynb
Module-03-interactive.ipynb
Module-04-interactive.ipynb
Module-05-interactive.ipynb
Module-06-interactive.ipynb
Module-07-interactive.ipynb
Module-08-interactive.ipynb
Module-09-interactive.ipynb
Module-10-interactive.ipynb
Module-11-interactive.ipynb
README.md
TODO.md
environment.yml

README.md

Learning Python: basic level

These notebook files are intended to help you self-learn Python.

The audience already has a basic idea about programming, about loops, about structure of source code.

Python can be used in many areas of application, but these notebooks, as you will see, have examples primarily from science, engineering, life sciences, and applied mathematics.

The topics listed below give an idea of what is covered. Within in each notebook are a series of simple or more challenging problems. The problems are designed to build on the topics just learned, as well as the topics from earlier notebooks.

Notebook 1: https://yint.org/pybasic01

  • Printing output to the screen
  • Creating variables
  • Variable types
  • Calculations with variables
  • Built-in constants and mathematical functions

Notebook 2: https://yint.org/pybasic02

  • Strings
  • Lists
  • For loops: iterating
  • Commenting and variable names

Notebook 3: https://yint.org/pybasic03

  • From strings to lists to strings to lists
  • If and else if branching in code
  • Reading from a file
  • Creating errors, checking for errors and handling errors
  • Challenge problems

Notebook 4: https://yint.org/pybasic04

  • Introducing vectors, matrices and arrays.
  • Using NumPy to create various vectors, matrices and arrays, containing specific values.
  • Get everyone to more or less the same level of understanding.

Notebook 5: https://yint.org/pybasic05

  • Mathematical operations (addition, multiplication, matrix math) on arrays.
  • Challenge problems that require using vectors and matrices.

Notebook 6: https://yint.org/pybasic06

  • Functions with single inputs, or multiple inputs: arguments based on their position, or name.
  • Functions with no (None) or single outputs, and multiple outputs in a tuple.
  • Challenge problems that recall work from prior modules, and apply your knowledge.

Notebook 7: https://yint.org/pybasic07

  • Dictionary objects in Python: the very basics.
  • Introducing Pandas' two main classes: Series and DataFrame: what they are, and how to use them.
  • Loading and saving data to/from CSV and Excel files.

Notebook 8: https://yint.org/pybasic08

  • Iterating over entries in a dictionary.
  • Getting and setting values in dictionaries.
  • Reading data from many CSV or Excel files.
  • Moving average calculations.

Notebook 9: https://yint.org/pybasic09

  • Statistics and Data Visualization: combined
  • Box plots; mean, median, percentiles
  • Bar plots; categorical vs numeric variables
  • Histograms; visualizing distribution and Central Limit Theorem

Notebook 10: https://yint.org/pybasic10

  • Goals of your data analysis project broken down
  • Data tables; correlations; pie charts are not so useful
  • Time-series; trends, induced delay from a moving average, random walks
  • Scatter plots; showing 5 variables in 1 plot
  • Extending the box plot: violin, swarm and raincloud plots
You can’t perform that action at this time.