Chapter 5: Programming in Sage and Python

5.1. Repetition without Boredom: The For Loop

5.2. Writing Subroutines

5.3. Loops and Newton’s Method

5.4. An Introduction to Control Flow

5.5. More Concepts in Flow Control

5.6. While Loops versus For Loops

5.7. How Arrays and Lists Work

5.8. Simulations: the Monte-Carlo Method

5.9. Some Intermediate-Level Techniques