Practice with automatic tests
Read a problem, write a solution, and run it against real Python test cases in your browser. No account, no installation, and no server-side execution.
Exercises
35
Test cases
117
Progress
Saved locally
8 exercises, each checked against multiple input cases.
Read two integers from standard input and print their sum.
Classify an integer as even or odd using the modulo operator.
Find the largest of three integers without sorting.
Count the digits in a non-negative integer, including the single digit in zero.
Read a non-negative integer and add its digits with a while loop and accumulator.
Reverse a non-negative integer without printing leading zeros.
Decide whether an integer greater than one is prime.
Compute the greatest common divisor of two positive integers.
7 exercises, each checked against multiple input cases.
Compute n! with a loop, including the special case 0! = 1.
Print the first n terms of the Fibonacci sequence on one line.
Print numbers from 1 to n with Fizz, Buzz, and FizzBuzz replacements.
Print the multiplication table for one number from 1 to 10.
Print a left-aligned triangle of stars for a given height.
Print rows of increasing numbers separated by spaces.
Read a line of integers and add only the even ones.
6 exercises, each checked against multiple input cases.
Read a line of text and print its characters in reverse order, including spaces.
Count the vowels in a line of text, ignoring case.
Check whether a phrase reads the same forwards and backwards.
Read a line of text and count whitespace-separated words, including a blank-line case.
Read a sentence and convert it to title case with Python string methods.
Read a line of text and remove every space character while keeping other punctuation.
7 exercises, each checked against multiple input cases.
Read a line of space-separated integers, convert them, and print their total.
Read a line of space-separated integers and find the largest value without sorting.
Compute the mean of a line of integers and format it to two decimals.
Remove repeated values while preserving first-seen order.
Read a line of space-separated integers and print them in ascending order.
Find the second largest distinct integer in a list.
Count how many times a target value appears in a list.
4 exercises, each checked against multiple input cases.
Write and call a function that returns True for even numbers.
Write a function that computes the area of a rectangle.
Compute a power with a loop inside a reusable function.
Write a function that returns a formatted greeting.
3 exercises, each checked against multiple input cases.
Count each word in a line and print the counts alphabetically.
Count non-space characters in a line and print a sorted table.
Read names and scores, then print the highest-scoring student.