Learn practical skills, build real-world projects, and advance your career

LibDescription
arrayProvides compact array storage for primitive types
collectionsDefines additional data structures and abstract base classesinvolving collections of objects
copyDefines general functions for making copies of objects
heapqProvides heap-based priority queue functions (see Section 9.3.7)
sysProvides additional level of interaction with the Python interpreter
reProvides support for processing regular expressions
timeProvides support for measuring time, or delaying a program
RandomProvides random number generation
osProvides support for interactions with the operating system
mathDefines common mathematical constants and functions

Math

import math
decibels = 10 * math.log2(7)
decibels
28.07354922057604
radians = 0.7
height = math.sin(radians)
height
0.644217687237691