Loading...
Loading...
Online editor and judge
Write Python in your browser, run it on the examples and submit it. 580 coding problems checked on hidden test cases, and 2,700+ practice exercises checked on their expected output.
2. Even or odd token number
Python 3.12 · 6 hidden testsHow it works
Open any coding problem or practice exercise and write your program in the editor. It has syntax colours, auto brackets and line numbers, and saves your code as you type, so you can continue on another device.
Run your program on the example input and see your output next to the expected output. Tick "Use my own input" to try any input you like.
On coding problems, Submit checks your program on hidden test cases, just like a placement test. Practice exercises are checked against their expected output. You see how many passed, a box per test, and the first test that failed with its input, the expected output and yours.
Accepted? The problem is marked solved, you earn XP, and the worked solution opens so you can compare it with yours.
Your result
The same results online judges and placement tests use, with what to check next.
Where to practise
Each problem-solving module ends with a set of must-do problems, from easy to hard. Every practice exercise in the lessons can be run and checked too.
FAQ
No install, no setup. Open a problem, write, run, submit.