Editor

Python parsing problems

Turn text into structure in Python, from simple formats to tiny languages, on problems with tests.

Beginner

  1. 35. Clock Time to SecondsHow many seconds long is a video that runs 1:02:03?35 XP7 min

Intermediate

  1. 56. Compare Version NumbersIs version 1.10 newer than 1.9? Every software update has to know60 XP10 min
  2. 108. Parse a URL Query StringUnpack the part of a web address that comes after the question mark85 XP18 min
  3. 317. Markdown Table of ContentsBuild the contents list for a long README75 XP15 min

Advanced

  1. 120. Fill In a TemplatePersonalise a message by filling its blanks from your data115 XP22 min
  2. 125. Tokenize an ExpressionChop a line of code into the pieces a calculator can understand115 XP20 min
  3. 126. Decode Nested RepeatsUnfold a compressed string where patterns repeat inside patterns120 XP25 min
  4. 144. Read an INI Config FileTurn a settings file into data a program can use130 XP25 min
  5. 150. Split a CSV LineCommas hiding inside quotes are the trap in every spreadsheet export135 XP25 min
  6. 360. Parse a DurationHow many seconds is 1 hour, 20 minutes and 5 seconds?125 XP25 min
  7. 392. Properly Nested HTML TagsDoes every tag on this page close in the right place?140 XP30 min
  8. 421. Inline Markdown to HTMLTeach a chat app to show bold, italic, code and links160 XP35 min

Expert

  1. 173. Count the AtomsHow many atoms of each element hide inside a chemical formula?200 XP35 min
  2. 187. Evaluate an Arithmetic ExpressionBuild the brain of a calculator: brackets, precedence and all240 XP45 min
  3. 478. Spreadsheet FormulasA tiny spreadsheet that must notice formulas chasing their own tails250 XP55 min
  4. 487. JSON ParserTurn JSON text into Python data with no library to lean on260 XP60 min
  5. 498. Regex Engine With GroupsBuild a small regular expression engine from scratch280 XP65 min

Other topics

Or see every challenge, with study plans, today's challenge and duels.