Python for Scientists¶
These are the lecture notes for a Python: Programming for Scientists course that was given at the University of Heidelberg by Thomas Robitaille between 2012 and 2015. The notes are licensed under the Attribution Non-Commercial Share-Alike Creative Commons License.
Lecture Notes¶
Monday¶
Tuesday¶
Download Notebooks: tar file - zip file
- Functions
- Reading and Writing files
- Modules and Variable Scope
- Practice: Temperature statistics (solution)
- Problem Set 1 (due Wednesday 30th September at 19:00)
- Exercise solutions (updated during course)
Wednesday¶
Download Notebooks: tar file - zip file
- Introduction to Numpy
- Introduction to Matplotlib
- Files and paths
- String formatting
- Practice: Monte-Carlo Error Propagation (solution)
- Problem Set 2 (due Friday 2nd October at 19:00)
- Exercise solutions (updated during course)
Thursday¶
Download Notebooks: tar file - zip file
- Python variables - behind the scenes
- Introduction to Scipy: Fitting data
- Introduction to Scipy: Interpolation and Integration
- Understanding Python Errors
- Practice: Radioactive Decay (solution)
- Problem Set 3 (due Friday 9th October at 19:00)
- Exercise solutions (updated during course)
Friday¶
Download Notebooks: tar file - zip file
- Accessing remote resources
- Object-oriented programming
- Practice: Map of temperatures (solution)
- Exercise solutions (updated during course)