Numbers: math, random, statistics, decimal and fractions
Five standard library modules cover every numeric need core Python has: exact maths, randomness, summary statistics, exact decimals and exact fraction...
The batteries that ship with Python: math, random, datetime, os, sys, pathlib, collections, itertools, functools and more.
6 notes
Five standard library modules cover every numeric need core Python has: exact maths, randomness, summary statistics, exact decimals and exact fraction...
datetime handles calendar dates and clock times, timedelta handles durations, strftime and strptime convert to and from text, and time zones are where...
sys is about the running interpreter - arguments, streams, paths and exit. os is about the operating system - environment variables, processes and the...
Six specialised containers that solve problems the built-in types solve awkwardly: counting, grouping, queues, records, and layered lookups.
itertools builds lazy iterators for combining and slicing sequences. functools transforms functions themselves - caching, partial application and redu...
Five more modules that appear in almost every real program: named constants, safe copying, readable output, proper logging, and identifiers and hashes...