Want to learn and master Pyret?

Join Exercism’s Pyret Track for access to 52 exercises with automatic analysis of your code and personal mentoring, all 100% free.

Explore exercises

About Pyret

fun sum(lst):
  cases (List) lst:
    | empty => 0
    | link(first, rest) => first + sum(rest)
  end
where:
  sum([list: ]) is 0
  sum([list: 1, 2, 3]) is 6
end

52 coding exercises for Pyret on Exercism. From Allergies to Leap.


Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.

See all Pyret exercises on Exercism

Key Features of Pyret


Pyret

Simplified syntax

As a teaching language, Pyret prioritizes readability using clean and straight-forward syntax

Runs almost everywhere

Pyret is available wherever npm can be installed or online at https://code.pyret.org/editor

Pedagogical design

Pyret was designed to have a gradual learning curve, focusing on general programming practices

Lightweight

Entire toolchain is about 100 MB download

Tooling

Pyret provides a built-in test runner, making testing a natural part of the development process

Innovative

Pyret is an actively-developed testbed for advancements in teaching computer science fundamentals

Get mentored the Pyret way

Every language has its own way of doing things. Pyret is no different. Our mentors will help you learn to think like a Pyret developer and how to write idiomatic code in Pyret. Once you've solved an exercise, submit it to our volunteer team, and they'll give you hints, ideas, and feedback on how to make it feel more like what you'd normally see in Pyret - they'll help you discover the things you don't know that you don't know.

Learn more about mentoring

Community-sourced Pyret exercises

The Pyret track on Exercism has 52 exercises to help you write better code. Discover new exercises as you progress and get engrossed in learning new concepts and improving the way you currently write.

See all Pyret exercises
Pyret

Get started with the Pyret track

The best part, it’s 100% free for everyone.