Building programs with Python
The best way to learn how to program is to do something useful, so this introduction to Python is built around a common scientific task: data analysis.
Our real goal isn’t just to teach you Python, but to teach you the basic concepts that all programming depends on. We use Python in our lessons because:
- we have to use something for examples;
- it’s free, well-documented, and runs almost everywhere;
- it has a large (and growing) user base among scientists; and
- experience shows that it’s easier for novices to pick up than most other languages.
But the two most important things are to use whatever language your colleagues are using, so that you can share your work with them easily, and to use that language well.
Topics
- Python basics: Running the Python interpreter and Variables
- Arrays and Lists
- Repeating actions with loops
- Processing data files
- Making choices
- Creating functions
- Command-Line Programs
- Reading and analysing Patient data using libraries
- Visualising data using libraries
- Python Style Guide