Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 513 Bytes

File metadata and controls

18 lines (12 loc) · 513 Bytes

#programming #programming/python #semester-2

Python Libraries

A library is another python program with already-made functions and methods that you can use in your program.

Importing Libraries

We can import, or use, libraries by using the import command:

import matplotlib
import numpy as np

You can also give libraries shorthand names by using as. In the example above, instead of writing numpy.sin(), i could write np.sin()

[[Numpy]]

[[Matplotlib]]