Posts from Python

Matrix Data Type Rectification in Python

By Anirudh Singh Sengar

Sometimes while giving data as an input we pass the numbers in string type. Later we come to know that we need the numbers in int or float type instead of a string. At this time th.... Read More

Extract Synonyms and Antonyms using Python NLTK library

By Anirudh Singh Sengar

Natural Language Toolkit(NLTK) was created by George Miller and Christiane Fellbaum of Princeton University. It is a module that gives us a platform to build Python programs. These.... Read More

How to track Corona Virus statistics in Python

By Abhisikta Chakraborty

Hello Everyone! Life has been hard lately. We are living through tough times. So why not do something about it? Here’s my take on ……How to track Corona Virus Stat.... Read More

Get the file id of windows file in Python

By Ranjeet V

Hello everyone, in this tutorial, we will be learning how to get the file id of windows file in Python. A file id is an identifier that uniquely identifies a file on a Volume on wi.... Read More

Raise an Exception to another Exception in Python

By Ranjeet V

In this tutorial, we will learn how to raise an exception in response to another exception in Python. This is also called exception chaining. In the below example code, we have a t.... Read More

Swap all odd and even bits in Python

By Kunal Kamble

Hello friends in this tutorial, we will learn to swap the odd and even bits of a number and write the code for it in Python. Now let’s explore how we can do it. For example: .... Read More

Implement LRU Cache Decorator in Python

By Monika Maheshwari

In this section, we are going to implement Least Recently Used cache decorator in Python. It works on the principle that it removes the least recently used data and replaces it wit.... Read More

How to add packages to Anaconda environment in Python

By Suchita Sriramka

In this tutorial, we will see different ways to add packages to the Anaconda environment in Python. Anaconda is an open-source python distribution. It is widely used for the ease o.... Read More