Intro to Python#

Notebooks in this section were compiled for year 1 undergraduate students in Earth Science and Engineering Department at Imperial College London.

The notebooks cover all basic topics covered in year 1 programming course:

  1. Printing and formatting statements

  2. Variables

  3. If statement

  4. While loops

  5. Lists

  6. For loops

  7. List comprehensions

  8. Nested lists

  9. Handling errors

  10. Importing in Python

  11. Creating custom functions

  12. Tuples

  13. File handling

  14. Dictionaries

  15. Flow control statements

  16. Sets

  17. Plotting data with Matplotlib

  18. Assert

  19. Python classes

  20. Lambdas