Chapter 1: The Fundamentals
Chapter 1: The Fundamentals#
This chapter contains the basics of Python covered in the MT2000 workshops that we will build upon in this module. Take the first week to refresh this material and use this chapter as a reference as you work through the rest of the module.
- Python & Jupyter
- Variables
- Modules and numpy
- Errors
- Printing to the screen
- For loops
- Nested
for
loops - Functions
- Conditionals
- While loops
- Lists
- Tuples
- Arrays
- Slicing
- Floating point numbers
- Overflow and underflow
- Sets and Dicts
- Types
- Input and files
- Matplotlib
- Contour plots
- Plotting vector fields
- Saving plots
- Animated plots
- Markdown