The Libraries in python means it is pre-defined python code and collection of modules that is used to perform specific tasks. these libraries is designed to reuseable and can be imported into your program python code to provide additional functionality . python libraries created by other developers that libraries reuseable in your program. libraries in the python the code is already written then we are using that libraries by importing that libraries and using it. the libraries is a collection of related modules or packages
Built in Libraries
External Libraries
The python provides the built in libraries to create and use that libraries with installing extra packages . the built in libraries can be done the work with installing any packages in ur system
The os is a built in library we can use that library with installing the package import the os
Import os
print(os.version)
This works is more import the date and time that is currently running
Import datetime
print(datetime.show())
It provides the math related functions to perform a specific task . like floor, ceil, other
import math
print(math.floor(20,2))
By using this library we want to display the random number in the sequence
import random
Print(random.num())
The external libraries is also called third party libraries in the python . because we can install the package with carefully and later we can use that. it is also collection of pre-written code it performs a specific task. like numpy, pandas,Tkinter and matplotlib
The numpy is a external library we can install that in to our system follow this pip install numpy . pip is a third party for install the library. it support the large calculation , multi-dimensions array, matrices and other functions.
import numpy as np
x=np.array([1,2,3])
y=np.sum(x)
print(y)
it provides the data manipulation and data analysis ,data structure etc
it provides the gui programs like graph, pie chart etc