×
Home Discussions Write at Opengenus IQ
×
  • DSA Cheatsheet
  • HOME
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • RANDOM
  • One Liner

Python

Python is a programming language that has been released in 1991 but is being widely used recently. It is widely being considered as the first choice for domains like Machine learning because of its abstraction.

Machine Learning (ML)

Text Preprocessing in Python using spaCy library

In this article, we have explored Text Preprocessing in Python using spaCy library in detail. Some techniques we have covered are Tokenization, Lemmatization, Removing Punctuations and Stopwords, Part of Speech Tagging and Entity Recognition

Anmol Saluja
Software Engineering

Ways to ZIP a file in Python

In this post, we have covered how to ZIP a file in Python, how to extract files from a ZIP file, how to print contents of a ZIP file using Python and much more with Python code examples.

Ganesh Bagaria Ganesh Bagaria
Python

Node structure of different trees in Python

We have explored the node structure in Python of different trees in data structure. This gives fundamental idea of implementing such trees in Python. Some of the trees we explored are Binary Tree, Binary Search Tree (BST), AVL Tree, B Tree, B+ Tree, Red-Black Tree, Treap, Splay Tree and R Tree.

Avishi Gupta
Software Engineering

Boolean and None in Python

"if x" and "if x is not None" are not equivalent - the proof can be seen by setting x to an empty list or string. In this article, we have explored the two important concepts namely boolean and none in Python.

Annie Lee Annie Lee
Software Engineering

Variable scope in Python

The variable scope in Python is the part of a program where a variable is accessible. A variable can be accessed within the region it is defined, we call this it's scope.

Victor O. Alvarez Victor O. Alvarez
Software Engineering

Complex Numbers in Python

In this article, we have explored how to work with Complex Numbers in Python which is supported in Python inherently as a fundamental datatype. We have covered the different operations as well.

Lyndi Castrejon Lyndi Castrejon
Software Engineering

2D Arrays in NumPy (Python)

In this article, we have explored 2D array in Numpy in Python. Numpy is a Python library for numerical computations and has a good support for multi-dimensional arrays.

Chand Bud Chand Bud
Software Engineering

Different ways to unzip a file in Python

When working with archived files there are various ways in which you can unzip your file. In this article we will learn how to extract single or multiple files from a zip file, unzip the whole file etc.

Devansh Thapa Devansh Thapa
Software Engineering

zipfile module in Python

We have explored zipfile module in Python in depth. It is used for all operations related to ZIP file and used to create such ZIP files.

Devansh Thapa Devansh Thapa
Software Engineering

Creating archive for larger files in Python

In this article, you will learn how to use the functionality provided by Python modules to get the size of a file, recursively traversing the directories and creating a directory,creating writing to a file,creating an archive of files.

Devansh Thapa Devansh Thapa
Software Engineering

Working with filecmp in Python

Filecmp module in Python involves simple operations and data types (loops and lists) that can be replicated in any programming language. filecmp just simplifies and shortens your code by taking care of the logic for you.

Lyndi Castrejon Lyndi Castrejon
Software Engineering

Basic Guide to Python Itertools and its functionalities

Itertools module is a standard library module provided by Python 3 Library that provide various functions to work on iterators to create fast , efficient and complex iterations.

Ramankur Goswami Ramankur Goswami
Software Engineering

Learning Python's difflib Module

Difflib is a module that contains several easy-to-use functions and classes that allow users to compare sets of data. The module presents the results of these sequence comparisons in a human-readable format, utilizing deltas to display the differences more cleanly.

Lyndi Castrejon Lyndi Castrejon
Software Engineering

Exploring Python's Stat Module

Python's stat() module performs a stat system call on the given path and provides several information like inode number, size, number of hard links, time it was created and modified and much more.

Aakash Kaushik Aakash Kaushik
Software Engineering

Deque in Python

Deque (double ended queue) is a data structure that can be used to insert or delete data elements at both it ends. It is directly supported in Python through collections module.

Sukaran Grover
Software Engineering

Delete files that have not been accessed recently using Python

In this article, you will learn how to use the functionality provided by python modules to get the last access time of a file, recursively traversing the directories and deleting files.

Devansh Thapa Devansh Thapa
Software Engineering

Advanced Bitwise Operations in Python

In this article, we have explored advanced bitwise operations in Python. Some of these operations include check if Two Numbers are the Same, add Two Numbers, multiply Two Numbers, swap Two Numbers and check Divisibility of a Number.

Lyndi Castrejon Lyndi Castrejon
Software Engineering

Archiving in Python using shutil

In this article, we are going to learn about using the shutil module in python to create an archive consisting of several smaller files. This is often required when we want to distribute the source code of any complex software applications which might contain hundreds of different files.

Arna Maity Arna Maity
Software Engineering

Flask SQLAlchemy for Beginners

SQLAlchemy is a toolkit and object relational mapper (ORM) that allows programmers to take hold of the power of SQL without all of the trouble of configuring their Python app to communicate correctly.

Lyndi Castrejon Lyndi Castrejon
Software Engineering

Shutil module in Python

Shutil module in Python offers a range of high level operations and functions to work with files and collections of files. The functionalities provided are copying a file, moving a file, disk usage, directory removal and many more.

Devansh Thapa Devansh Thapa
Software Engineering

Module in Python

A module in Python is a library which is a collection of various utilities/ functions which can be loaded in external Python code and used accordingly. For example: One module in Python is string.

Gaurav Patel Gaurav Patel
Software Engineering

Using the Pathlib Module in Python

Pathlib module was introduced in Python 3.4 to handle file paths better across different Operating Systems. It solves the problems and bugs previously faced with os.path module to achieve similar tasks.

Lyndi Castrejon Lyndi Castrejon
Software Engineering

OS module (Operating System) in Python

In this article, we have explored OS module in Python in depth. It is used for various directory and file operations like changing directory, creating files, get statistics of a file and much more.

Devansh Thapa Devansh Thapa
Software Engineering

Serialization in Python using Pickle

In this article, we have explored Serialization in Python using pickle in depth. This is useful in saving Python data structures (in a file) as is so that it can be loaded directly by other process or by itself later.

Karishma Gupta Karishma Gupta
Software Engineering

Generate executable from Python file using PyInstaller

In this article we have explained how we can use PyInstaller to create standalone executable from our python applications. We have demonstrated this using a real life codebase.

Arna Maity Arna Maity
OpenGenus IQ © 2025 All rights reserved â„¢
Contact - Email: team@opengenus.org
Primary Address: JR Shinjuku Miraina Tower, Tokyo, Shinjuku 160-0022, JP
Office #2: Commercial Complex D4, Delhi, Delhi 110017, IN
Top Posts LinkedIn Twitter
Android App
Apply for Internship