A row of circles representing the addition of 1, 2, 3, and 4. It consists of four rows and four columns resembling a lower triangular matrix. Row 1 has a circle. Row 2 has two circles. Row 3 has three circles. Row 4 has four circles.

Back to Figure

A row of circles represents the addition of numbers. It consists of four rows and five columns resembling a rectangle. Each row has five circles. It represents a lower triangular matrix and an upper triangular matrix.

Back to Figure

The window displays the following program code. Input 1: 2, plus, 2. Output 1: 4. Input 2: 100, minus, 75. Output 2: 25. Input 3: 7, asterisk, 9. Output 3: 63. Input 4: 14, forward slash, forward slash, 2. Output 4: 7. Input 5: 15, forward slash, forward slash, 2, hash, ...

Get Python Programming in Context, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.