Introduction to Python
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.
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.
In order to run the tutorial notebooks tutees will need to have the following installed:
- Python (require >=3.5)
- NumPy (recommend >=1.16.2)
- SciPy (recommend >=1.2.1)
- Astropy (recommend >=3.1.2)
- Matplotlib (recommend >=3.0.3)
- Jupyter (recommend >=1.0.0)
All of the packages listed above can easily be installed using either
pip or Anaconda.
$ pip install numpy scipy astropy matplotlib jupyter
$ conda install numpy scipy astropy matplotlib jupyter