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.
- Choose the language (the exercise usually preselects it).
- Write your solution.
- Click Run. Each test case reports pass or fail, with time and memory used.
- 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?