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 in493 exercises · Page 17 of 21
Program or module
Modules and imports
Medium
Import order
Modules and imports
Hard
Due date
Standard library
Medium
Most common words
Standard library
Medium
Cities by country
Standard library
Medium
Statistics summary
Standard library
Medium
Password generator
Standard library
Medium
Anagrams
Standard library
Medium
Grade table with bisect
Standard library
Easy
The k largest and smallest
Standard library
Medium
Memoization with lru_cache
Standard library
Medium
Sorting with itemgetter
Standard library
Medium
Fitting text to a width
Standard library
Medium
Days between two dates
Dates and times
Easy
Day of the week
Dates and times
Easy
Add days to a date
Dates and times
Medium
Leap years and days in a month
Dates and times
Medium
Compute the age
Dates and times
Medium
Format dates
Dates and times
Medium
Dates with a custom format
Dates and times
Medium
Duration between two moments
Dates and times
Hard
Working days
Dates and times
Hard
Event schedule
Dates and times
Hard
Column total
CSV and JSON files
Easy