Absolute Difference of Two Integers
Compute the absolute difference between two integers, regardless of order.
Grade Calculator
Implement a function that converts a numeric score to a letter grade using a standard scale.
Simple Interest Calculator
Implement a function that calculates simple interest given principal, annual rate, and time in years.
Tip Calculator
Write a function that calculates the total bill after adding a given tip percentage.
Count Positives
Count the positive numbers in a list of integers.
Is divisible by?
Create a function that returns True if a is divisible by b with no remainder, with a clear definition of edge cases.
Perimeter of triangle
Given three side lengths, return the perimeter (sum) of the triangle.
Circle Circumference Calculator
Implement a function that computes the circumference of a circle from its radius using the formula 2πr.
Pathlib Operations: File Path Basics
Practice using pathlib to manipulate file paths and extract components.
Count trailing zeros
Write a function that counts the number of trailing zeros in the decimal representation of a positive integer.
Guess Number Game
Simulate a number guessing game with attempts, feedback, and a win/lose result.
Basic Calculator
Implement a function that evaluates a simple arithmetic expression with +, -, *, / and parentheses.
Take n Items
Given a list and a non-negative integer n, return a new list containing the first n elements.
Capitalize First Letter
Write a function that capitalizes the first letter of each word in a string.
Find substring index
Implement a function that returns the starting index of the first occurrence of a substring using only basic string indexing and slicing.
Basic Calculator III
Implement a recursive descent parser to evaluate a fully parenthesized arithmetic expression with +, -, *, / and parentheses.
Middle Element of an Odd-Length List
Implement a function that returns the middle element of an odd-length list.
Event emitter basics
Implement an EventEmitter class with subscribe/emit/unsubscribe functionality.
Rectangle class
Implement a Rectangle class with properties, methods, and special methods for basic geometry and comparison.
Basic Calculator II
Evaluate a basic arithmetic expression with +, -, *, / following operator precedence.
Custom iterator class
Implement a custom iterator class that repeatedly yields elements from a list up to a given number of times.
Showing 1–21 of 21 challenges
Guide: free Python coding challenges
Practice Python by solving problems
PythonSkillset challenges are hands-on coding exercises from beginner to advanced. Open a challenge, read the problem, write Python in the split-pane editor, and run tests with Pyodide — no install required.
How to use the arena
- Pick a category — basics, algorithms, strings, and more
- Open a challenge, read the statement, and edit the starter code
- Run tests, fix failures, then try a related quiz or tutorial lesson
Challenges vs tutorials and quizzes
Challenges test what you can build under constraints. For guided teaching, use our Python tutorials. For quick checks, try quizzes or copy snippets from code samples.