Overview
CodingBat is a free site of short, live coding problems in Java and Python, created by Stanford computer science lecturer Nick Parlante. Each problem asks you to write one small method; you type it into the page, press Go, and your code is compiled and run against a table of test cases, with a green check when every case passes.
It is aimed at beginners and students who need lots of practice with the basics: strings, arrays or lists, boolean logic, loops and recursion. Java has the larger set, including AP-style, map and functional sections, while Python covers warmups, strings, lists and logic. Warmup sections include solutions, and some harder problems have hints.
You can practise without an account, but unsaved work is forgotten after two hours of inactivity. A free account keeps your code and check marks, and the Teacher Share option lets a teacher see a progress report for their students. Teachers can also write their own problems.
Categories
Features
- Short Java and Python problems that each ask for one method
- Runs your code against test cases and shows results next to the editor
- Java sections for warmups, strings, arrays, logic, recursion, AP-style, maps and functional programming
- Python sections for warmups, strings, lists and logic
- Solutions in the warmup sections and hints on some harder problems
- Teacher Share reports showing each student's completed problems
- Author page for writing custom problems
Privacy
The privacy policy says an email address is only needed to create an account and is used for password resets, is never sold or shared, and that the site does not use third-party cookies. Submitted code may be used for research into teaching.
Pros & Cons
Pros
- Completely free, with no ads or third-party cookies
- Usable without creating an account
- Instant feedback makes it good for drilling fundamentals
- Useful for teachers who want simple progress reports
Cons
- Problems are small exercises, not full projects
- Python has fewer problem sets than Java
- Work done without an account is lost after two hours of inactivity
- Plain, dated interface
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
An interactive editor for testing HTML, CSS, and JavaScript snippets.
Freemium No Signup Web -
Practices coding with exercises and mentor feedback.
Free Web -
Programming Education · HackerRank
Practices coding challenges and interview prep.
Freemium Web -
Practices coding interview questions.
Freemium Web