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 in261 exercises · Page 5 of 11
Two's complement
Numbers and bits
Medium
The unpaired number
Numbers and bits
Medium
Bit mask commands
Numbers and bits
Medium
Gray code
Numbers and bits
Medium
Exact sum of fractions
Numbers and bits
Medium
Dictionary of lengths
Comprehensions and functional programming
Medium
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
Double the positives
Comprehensions and functional programming
Medium
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
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
Custom range
Iterators and generators
Medium
Generator pipeline
Iterators and generators
Medium
Palindromes
Text processing
Medium
Caesar cipher
Text processing
Medium
Text compression
Text processing
Medium