Learn practical skills, build real-world projects, and advance your career
Created 4 years ago
Lib | Description |
---|---|
array | Provides compact array storage for primitive types |
collections | Defines additional data structures and abstract base classesinvolving collections of objects |
copy | Defines general functions for making copies of objects |
heapq | Provides heap-based priority queue functions (see Section 9.3.7) |
sys | Provides additional level of interaction with the Python interpreter |
re | Provides support for processing regular expressions |
time | Provides support for measuring time, or delaying a program |
Random | Provides random number generation |
os | Provides support for interactions with the operating system |
math | Defines 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