1 Getting Started and Running Pyret🔗

The most direct way to Pyret is to visit https://code.pyret.org, which runs Pyret entirely within your browser.

There are a few other ways to run Pyret via the command-line and via Visual Studio Code, and all of these are summarized in Platforms.

If you’re interested in a textbook, you can try out A Data-Centric Introduction to Computing, which gives a structured introduction to programming in Pyret.

    1.1 Platforms

      1.1.1 code.pyret.org

      1.1.2 VScode Extension

        1.1.2.1 Installing the VScode Extension

        1.1.2.2 Opening Files in the VScode Extension

        1.1.2.3 Use with github.dev

        1.1.2.4 Editing Pyret Files with the Default Editor

      1.1.3 Command Line

    1.2 A Tour of Pyret

      1.2.1 Testing and Assertions

      1.2.2 Primitive Values and Operators

        1.2.2.1 Numbers

      1.2.3 Booleans

      1.2.4 Strings

      1.2.5 Lists

      1.2.6 Identifiers and Binding

        1.2.6.1 Identifiers

      1.2.7 Variables

      1.2.8 Functions

      1.2.9 Data

        1.2.9.1 Definitions

      1.2.10 Cases

      1.2.11 Annotations

      1.2.12 Control

        1.2.12.1 For loops

      1.2.13 If

        1.2.13.1 When blocks

      1.2.14 And more...