Practice Python
Every practice exercise of the course in one place. Filter by difficulty or topic, pick one and solve it in the full-screen editor.
- 493exercises
- 123Easy
- 261Medium
- 109Hard
Challenge of the day · 30 Nov
Count XML tags
Your progress by difficulty
to see your progress by difficulty.
Sign in123 exercises · Page 5 of 6
Appending to a text file
Text Files
Easy
List a folder
File system
Easy
Name, extension and folder
File system
Easy
Safe integer
Error and Exception Handling
Easy
Safe index
Error and Exception Handling
Easy
Section with entry and exit
Context managers
Easy
Tracing a loop
Debugging and testing
Easy
Testing with assert
Debugging and testing
Easy
Preconditions with assert
Debugging and testing
Easy
Boundary values
Debugging and testing
Easy
Floor, ceiling and truncation
Modules and imports
Easy
Grade table with bisect
Standard library
Easy
Days between two dates
Dates and times
Easy
Day of the week
Dates and times
Easy
Column total
CSV and JSON files
Easy
Reading a JSON object
CSV and JSON files
Easy
Contact book with SQLite
Databases with SQLite
Easy
Filter by price
Databases with SQLite
Easy
First number
Regular expressions
Easy
All the numbers
Regular expressions
Easy
Hide digits
Regular expressions
Easy
Postal code
Regular expressions
Easy
Greeting with arguments
Command-line programs
Easy
Sum of the arguments
Command-line programs
Easy