Libraries/Modules

--Originally published at Sierra's Blog

Libraries in Python will save you tons of time, they’re already done functions that you must import to your program to be able to use.

How do we use them?

there are two ways to use them, the first one is to write import and then the module that you want to use, for example, the math module can be used for typing the value of pi, obtain sin(x), cos(x), etc..

after you import a library you can call it writing the name of the module, a dot, and then, the thing inside the module that you want to use, for example:

libraries1

in this example python is gonna print 3.141592653589793

 

 

i’ll give you a link to a video tutorial made by rcasanueva:

 

and here’s a list of python’s libraries for you to check or use (Click on the image):

Sin título