CodingBat
Solve hundreds of short Java and Python problems with instant test feedback
CodingBat is a set of live coding problems in Java and Python. Each problem has a short statement, you write a small function in the browser, and the site runs it against a table of tests straight away. Problems are grouped into sections such as Warmup, String, Array and Logic, with harder versions of each.
Free · No login · Browser · Beginner

About CodingBat
It was built by Nick Parlante, a computer science lecturer at Stanford, to drill the small pieces of code that bigger programs are made of: string and list handling, loops and boolean logic. It suits beginners and students, and it is often used as homework or lab practice.
It is free and runs in the browser. You can solve problems without an account; creating one saves your progress and lets teachers track students.
On Breakpoint since 10 Nov 2026.
Questions about CodingBat
Does CodingBat remember which problems I have solved?
- Only for logged-in users, who see their lifetime count of solved problems. Without an account, the done page shows just the problems solved in the current session, so create an account to save your code for longer.
In what order should I work through the Java sections?
- The list starts with Warmup-1 and Warmup-2, then basic String-1, Array-1 and Logic-1 problems, then medium and harder ones that use one or two loops. Recursion, Map and Functional sections follow. Solutions are available for the warmups.
Do I need to install anything to practise on CodingBat?
- No. The problems are designed for low overhead: short problem statements like an exam, nothing to install, and immediate feedback in the browser. The site covers Java and Python.
Made this game? Claim it →

Tips and discussion
No tips yet.
Sign in to share a tip.