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 10 of 21
Sorting with key
Comprehensions and functional programming
Medium
The best student
Comprehensions and functional programming
Medium
Adding lists with zip
Comprehensions and functional programming
Medium
Number the lines
Comprehensions and functional programming
Easy
Double the positives
Comprehensions and functional programming
Medium
Sum of any amount of numbers
Advanced functions and decorators
Easy
Grades summary
Advanced functions and decorators
Easy
Record with keyword arguments
Advanced functions and decorators
Easy
Final price with default values
Advanced functions and decorators
Easy
Multiplier factory
Advanced functions and decorators
Easy
Independent counters
Advanced functions and decorators
Medium
Decorator that logs calls
Advanced functions and decorators
Medium
Decorator that counts calls
Advanced functions and decorators
Medium
Decorator with a parameter
Advanced functions and decorators
Medium
Reduce a list to one value
Advanced functions and decorators
Medium
Looping with iter and next
Iterators and generators
Easy
Countdown with a generator
Iterators and generators
Easy
Fibonacci with a generator
Iterators and generators
Easy
Lines without comments
Iterators and generators
Medium
Flatten with yield from
Iterators and generators
Medium
Infinite primes
Iterators and generators
Medium
Collatz sequence
Iterators and generators
Medium
First element that matches
Iterators and generators
Easy
Custom range
Iterators and generators
Medium