Py

Standard Library Tour

Module 12 of 14, Intermediate
🧰

Standard Library Tour

Batteries included: imports, math, random, datetime, collections, itertools, files, json and re.

0 of 7 lessons complete

7 lessons, 72 min

Start module

Lessons

1

Imports, math & random

Load modules three ways, compare floats safely and roll seeded dice.

11 min
2

Dates and times

Do calendar math with date, datetime and timedelta.

10 min
3

collections: smarter containers

Count with Counter, group with defaultdict, queue with deque.

11 min
4

itertools: loop power tools

Combinations, products, running totals and endless cycles.

9 min
5

Reading and writing files

Save data that outlives your program with open(), write() and read().

10 min
6

JSON data

Convert between Python objects and the web's favourite data format.

9 min
7

Regular expressions & text tools

Find, extract and clean text with re, string and textwrap.

12 min
🧠
Next module

Algorithms & Problem Solving