Join Exercism’s Pyret Track for access to 52 exercises with automatic analysis of your code and personal mentoring, all 100% free.
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
Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.
Given a DNA strand, return its RNA Complement Transcription.
Use the Sieve of Eratosthenes to find all the primes from 2 up to a given number.
Exercism's classic introductory exercise. Just say "Hello, World!".
As a teaching language, Pyret prioritizes readability using clean and straight-forward syntax
Pyret is available wherever npm can be installed or online at https://code.pyret.org/editor
Pyret was designed to have a gradual learning curve, focusing on general programming practices
Entire toolchain is about 100 MB download
Pyret provides a built-in test runner, making testing a natural part of the development process
Pyret is an actively-developed testbed for advancements in teaching computer science fundamentals
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 mentoringThe 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 exercisesThe best part, it’s 100% free for everyone.