Posts From Python Modules

Python Collections

A Collection is used to represent a set of similar data items as a single unit that is used to group and manage related objects. They contain data structures that are used to manipulate and store data efficiently. Python collections module provides a lot of data structures to implement different types of collections. The following […]

Python os module – 10 Must-Know Functions

Modules are basically pre-defined functions that help to reduce the redundancy to the code and add built-in functionalities to it. Python os Module allows us to interact and use the Operating System functionality efficiently. The os module allows us to gain access to the Operating System information. Thus, this module contains functions that serve as […]

Python sys Module

Python sys module deals with the system and environment-specific variables and parameters. We can use it to read the PATH variable and the list of command-line parameters passed to the Python script. Import sys Module in Python Before using any module, it needs to be imported. Syntax: import module_name Example: import sys Python sys.modules This […]

The pickle Module in Python

We often come across a situation where we would need to store or transfer objects. The pickle module in Python is one such library that serves the purpose of storing Python objects as a serialized byte sequence into files for retrieval at a later time. Let us look into what it exactly does in this […]

Introduction to Python Modules

Modules are the pre-defined files that contain the python codes which depict the basic functionalities of class, methods, variables, etc. It consists of different functions, classes in a group of files inside a directory. Modules can also be termed as Libraries. These are basically the pre-defined methods that can be used to make the code […]

Python – An Introduction to NumPy Arrays

NumPy is the most commonly used scientific computing Python library. It provides a fast Pythonic interface, while still using the much faster C++ under the hood for computation. This ensures that the high-level readability and Pythonic features are still present while making the actual computation much faster than what pure Python code could. Here, we […]