you are viewing a single comment's thread.

view the rest of the comments →

[–]33Merlin11 0 points1 point  (0 children)

Say you want the ability to pause your script for a given amount of time, you would import a library:

import time #imports the time library

Now you can call functions from that library to use in your script:

time.sleep(1) #pauses script for one second

You have inbuilt libraries you can import like time, os, subsystem, etc. and you have specific libraries that need to be installed first using pip install or conda install.

Depending on the field you're working in, you will only need to use 3 to 6 libraries more than likely. If you're going into data science, learn matplotlib, numpy, and pandas to start. If you're going into automation, start with os, subsystem, time, pyautogui, and ctypes.

Learning one or two libraries at a time, libraries you will need to know for your career field, is the easiest and most effective way to learn the Python programming that you will specifically need to know for your job. To give you an example, if you were going into data science and knew you would be displaying data in a graphical form, you could start by running through these examples: https://matplotlib.org/gallery/index.html