Times table on a circle · Python

Flashcards for Python lesson 2: Loops and remainders

Read the front, say the back to yourself, then open the card.

  • zip(a, b)

    Pairs two sequences item by item: (a[0], b[0]), (a[1], b[1]), …

  • x % n

    The remainder of x divided by n: 300 % 200 is 100.

  • plt.plot([x1, x2], [y1, y2])

    A line from (x1, y1) to (x2, y2).

  • Envelope

    The curve that every line of a family just touches: here, the cardioid.

  • Times k on a circle

    A whole multiplier k draws a curve with k − 1 cusps.

Back to the lesson