Browse topics

Code exercises

Write and run code in the browser against your instructor’s test cases, in 30 languages.

LearnersInstructors

A Code Playground block gives you an in-browser editor. Write a solution, then run it against the test cases your instructor defined.

  1. Choose the language (the exercise usually preselects it).
  2. Write your solution.
  3. Click Run. Each test case reports pass or fail, with time and memory used.
  4. Fix and re-run until every test passes. Your submission is saved.

Code runs in an isolated sandbox. Thirty languages are supported, including Python, JavaScript, TypeScript, Java, C, C++, Rust, Go, C#, Ruby, PHP, SQL and Bash.

  • A Code Playground block in a page is practice.
  • A Code task in an assignment counts towards that assignment's grade.

Was this article helpful?

Still need help?

Questions about access, grades or a payment to your school? Your instructor or organization admin can usually sort it fastest. For anything else, our support team is here.