Py

Standard Library Tour

Module 12 of 14, Intermediate
🧰

Standard Library Tour

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

0 of 6 lessons complete

6 lessons, 62 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

JSON data

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

9 min
6

Regular expressions & text tools

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

12 min
🧠
Next module

Algorithms & Problem Solving