← Code LabPython0/50 solved · 0%
Tooling · medium

36. Pure parsing functions

Separate parsing logic from formatting.

Write `parse_amount(raw)` that strips whitespace, removes commas, and returns a `float`. E.g. `" 1,000 "` -> `1000.0`.
Required in your answer: .strip(.replace(