os.getloadavg()
os.getloadavg() is a Python function in the OS Module category. Returns system load averages over the last 1, 5, and 15 minutes (Unix only). The syntax is os.getloadavg(). Returns: Tuple of 3 floats. A typical example: os.getloadavg() # (2.5, 1.8, 1.2). A close sibling is os.getcwd(), which returns the current working directory as a string. A close sibling is os.chdir(), which changes the current working directory to the given path. A close sibling is os.listdir(), which returns a list of all files and directories in the given path. A close sibling is os.mkdir(), which creates a single directory. Raises FileExistsError if it already exists. More about this category: Operating system interface — file operations, paths, environment variables. For a broader walkthrough, read the OS Module guide. Related OS Module entries: os.getcwd(), os.chdir(), os.listdir(), os.mkdir(), os.makedirs(), os.remove(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details.