A Primer on Scientific Programming with Python
Textbook:
Hans Petter Langtangen
A Primer on Scientific Programming with Python Third Edition
Contents.
Chapter 1 introduces variables, objects, modules, and text formatting through examples concerning evaluation of mathematical formulas.
Chapter 2 presents programming with while and for loops as well as lists, including nested lists.
The next chapter deals with two other fundamental concepts in programming: functions and if-else tests.