Course Notes:
PH2150 - Post Exam Python (to be moved onto the PH2150 Moodle page during the summer moodle rol-over)
Read this first Basic Python notes (written for 2.x, to be updated during the summer):
ph2150_notes_2016.pdf (25 pages)
The complete guide to Scientific Programming in Python written by the developers:
ScipyLectures-simple.pdf, html version here
https://scipy-lectures.org/
Post Exam Week:
- Introduction
- Starting python and getting used to the environment
- Python as a calculator
- Functions
- Use functions already defined in python or python libraries
- Write your own functions to do something useful
- Lists
- Lists to store data
- Functions on lists
- Control structures
- Conditionals (==, etc)
- if, for, while
- Arrays
- Data and mathematical data structures
- Plotting
- Advanced plotting
Post Exam Lectures:
During the course we will be using Jupyter notebooks, that are files that can run code and contain notes. Here I have created a static pdf version of each lecture so that you can easily read the info. To run the Juypter notbook copy the file to your working directory, open Juypter notebooks in Anaconda and navigate to your file. Alternatively you can launch a slide show from the python terminal with the command:
jupyter nbconvert *filename*.ipynb to slides --post serve
Lecture 1 Tues AM: ( Jupyter Notebook) Course Aims,
PH2150_2019_Lecture1.ipynb
Lecture 1: Tues AM: (pdf version) Course Aims,
PH2150_2019_Lecture1.pdf
Lecture 2: (Jupyter Notebook), Variables, Modules, Control Structures,
PH2150_Lecture2.ipynb
Lecture 2: (pdf), Variables, Modules, Control Structures,
PH2150_Lecture2.pdf
Lecture 3: (Jupyter Notebook),User Defined Functions,
PH2150_Lecture3.ipynb
Lecture 3: (pdf),User Defined Functions,
PH2150_Lecture3.pdf
Lecture 4: (Jupyter Notebook) The Numpy Array,
PH2150_lecture4.ipynb
Lecture 4: (pdf) The Numpy Array,
PH2150_lecture4.pdf
Lecture 5: (Jupyter Notebook), Matplotlib,
PH2150_lecture5.ipynb
Lecture 5: (pdf), Matplotlib,
PH2150_lecture5.pdf
PH2150 Problem sheets:
PS1: (Due in after the first session in the Autumn term)
PH2150-2019-PS1.pdf
PS2: (Due in after 2nd session in the Autumn term)
PH2150-2019-PS2.pdf
PS3: (Due in before 3rd session in the Autumn term)
PH2150-2019-PS3.pdf