Leap Year Checker
Implement a function that decides whether a year is a leap year according to the standard Gregorian rules.
Validate date format
Return True if input string is exactly YYYY-MM-DD and a real calendar date.
Validate time format
Check whether a given string is a valid 24-hour time in HH:MM format.
Validate username format
Implement a function that validates a username according to length, allowed characters, and no consecutive underscores.
Validated descriptor
Implement a TypedField descriptor that raises TypeError if the value is not of the expected type.
Validate Email Regex
Implement a function that validates email addresses using regex with specific rules.
Validate phone number
Write a function that uses regular expressions to determine if a given string is a valid US phone number.
Match IPv6 Address
Write a function that uses a regex to validate whether a string is a fully expanded IPv6 address.
Match Credit Card Pattern
Write a function that validates a credit card number string against a set of formatting rules.
Validate Hex Color Code
Write a function that validates hex color codes using regular expressions.
Days in month
Write a function that returns the number of days in a given month and year, correctly handling leap years.
Showing 11 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.