python standard library python allows you to split your program into modules that can be reused in other python programs it comes with large collection of standard modules that you can use as the basis of your programs the python standard library consists of different modules for handling file /obasic mathematicsetc you don' need to install these separatelybut you need to important them when you want to use some of these modules or some of the functions within these modules the math module has all the basic math functions you needsuch astrigonometric functionssin( )cos( )etc logarithmic functionslog()log ()etc constants like pieinfnanetc etc example using the math module we create some basic examples how to use librarya package or moduleif we need only the sin(function we can do like this from math im por sin ( print (yif we need few functions we can do like this from math im por sin ( print ( cos (xprint (yif we need many functions we can do like this from math im por sin ( print ( cos (xprint (ywe can also use this alternative im po rt math math print (