SlaveCode LogoSlaveCode.
Academy
RoadmapProblemsSystem Design
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
SlaveCode LogoSlaveCode.

Standardize your coding journey. From basic academy courses and guided roadmaps to advanced system design, company interview prep, and real-time coding arenas. The all-in-one platform to master algorithms and prove your engineering excellence.

Learn & Practice

  • Academy
  • Problems
  • Roadmap
  • System Design

Compete & Tools

  • Arena
  • Contests
  • Compilers

Legal & Support

  • Report an Issue
  • Privacy Policy
  • Terms of Service
  • Contact Us

© 2026 SlaveCode. All rights reserved.

Pyret

Pyret

Designed in part to ease students into computer science fundamentals, Pyret plays a central role in 'A Data-Centric Introduction to Computing', an introductory college textbook, and is currently being taught in U.S. high schools.

Master Pyret with
Interactive Learning

Elevate your Pyret skills through 54 curated exercises across 0 core concepts. Master problem-solving with a structured learning path designed for modern developers.

Pyret

About Pyret

Designed as an introductory computing language, Pyret is a powerful functional language being taught at the high school and collegiate level. The language features strongly in A Data-Centric Introduction to Computing, a free online computer science resource. Pyret includes a wide range of primitives, algebraic datatypes, and seamless testing integration. Available online and offline, it can be easily used on many platforms.

Key Features of 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

Track icon

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

Dive into Pyret practice challenges

Acronym
Acronym
Level 2

Convert a long phrase to its acronym.

Allergies
Allergies
Level 3

Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.

Anagram
Anagram
Level 2

Given a word and a list of possible anagrams, select the correct sublist.

Armstrong Numbers
Armstrong Numbers
Level 2

Determine if a number is an Armstrong number.

Atbash Cipher
Atbash Cipher
Level 2

Create an implementation of the Atbash cipher, an ancient encryption system created in the Middle East.

Bank Account
Bank Account
Level 2

Simulate a bank account supporting opening/closing, withdraws, and deposits of money. Watch out for concurrent transactions!