Track 10 · Lesson 8 of 12
A tour of the standard library
Meet the modules you will use most — pathlib, json, csv, re, textwrap, string, decimal, fractions and uuid — and learn how to choose the right one.
You will be able to
- Work with file paths using pathlib instead of string manipulation
- Convert between Python data and JSON or CSV text
- Find patterns in text with re, and tidy text with textwrap and string
- Do exact money arithmetic with decimal and exact ratios with fractions, and create deterministic ids with uuid
- Choose a standard module for a task before writing the code yourself
Included with a Formula Quest membership
It has 4 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.
View Formula Quest memberships
Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.