Python §2

Python §2 is a small programming language, designed for the second chapter of the textbook Structure and Interpretation of Computer Programs, JavaScript Adaptation (SICP JS).

What names are predeclared in Python §2?

On the right, you see all predeclared names of Python §2, in alphabetical order. Click on a name to see how it is defined and used. They come in these groups:

  • MISC: Miscellaneous constants and functions
  • MATH: Mathematical constants and functions
  • LINKED LISTS: Support for linked lists

What can you do in Python §2?

You can use all features of Python §1 and all features that are introduced in chapter 2 of the textbook. Below are the features that Python §2 adds to Python §1.

The empty linked list None

Python §2 uses the predeclared name None to denote the empty linked list.

The LINKED LIST functions

To work with linked lists, you can use the functions in the LINKED LISTS group of predeclared functions, already mentioned above.

You want the definitive specs?

For our development team, we are maintaining a definitive description of the language, called the Specification of Python §2. Feel free to take a peek!