Pythonic code exercises
Write Python the way experienced Python programmers do, on short problems with tests that check your code.
Beginner
- 206. Squares of the Even NumbersKeep the even ones and give them a power-up25 XP3 min
- 228. Sort Words by LengthShortest words first, with a fair rule for the ties30 XP5 min
- 235. Zip Names and ScoresTwo lists that belong together, finally joined30 XP4 min
- 249. Invert a DictionaryFavourite colours, turned inside out40 XP7 min
- 257. Word LengthsHow long is every word, counting each word only once?40 XP7 min
Intermediate
Other topics
- Python Basics
- Strings
- Lists
- Dictionaries and sets
- Loops
- Functions
- Math
- Sorting and searching
- Two pointers
- Sliding window
- Stacks and queues
- Recursion and backtracking
- Dynamic programming
- Greedy
- Graphs
- Trees
- Bit manipulation
- Classes
- Iterators and generators
- Parsing
- Simulation
- Regular expressions
- Codes and ciphers
- Working with data
- Grids and matrices
- Geometry
- Games and puzzles
- Heaps
- Data structures
Or see every challenge, with study plans, today's challenge and duels.