Python parsing problems
Turn text into structure in Python, from simple formats to tiny languages, on problems with tests.
Beginner
Intermediate
Advanced
- 120. Fill In a TemplatePersonalise a message by filling its blanks from your data115 XP22 min
- 125. Tokenize an ExpressionChop a line of code into the pieces a calculator can understand115 XP20 min
- 126. Decode Nested RepeatsUnfold a compressed string where patterns repeat inside patterns120 XP25 min
- 144. Read an INI Config FileTurn a settings file into data a program can use130 XP25 min
- 150. Split a CSV LineCommas hiding inside quotes are the trap in every spreadsheet export135 XP25 min
- 360. Parse a DurationHow many seconds is 1 hour, 20 minutes and 5 seconds?125 XP25 min
- 392. Properly Nested HTML TagsDoes every tag on this page close in the right place?140 XP30 min
- 421. Inline Markdown to HTMLTeach a chat app to show bold, italic, code and links160 XP35 min
Expert
- 173. Count the AtomsHow many atoms of each element hide inside a chemical formula?200 XP35 min
- 187. Evaluate an Arithmetic ExpressionBuild the brain of a calculator: brackets, precedence and all240 XP45 min
- 478. Spreadsheet FormulasA tiny spreadsheet that must notice formulas chasing their own tails250 XP55 min
- 487. JSON ParserTurn JSON text into Python data with no library to lean on260 XP60 min
- 498. Regex Engine With GroupsBuild a small regular expression engine from scratch280 XP65 min
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
- Simulation
- Python idioms
- 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.