Find frequently used words in a paragraph and visualize it

In this article, we are going to find the frequently used words from a paragraph and visualize it using matplotlib library. The words and their occurrences are plotted along the x and y-axis. This helps us to easily visualize the frequently used words in a paragraph and also see the number of times it has […]

Read More

Built in exceptions in python

In this article we shall see some of the built in exceptions in python. Just like built in methods these exceptions are built into python. Just like our own exceptions handling python also has some of the built in exceptions. Some of the built in exceptions that will be dealt in this article are, AttributeError […]

Read More

Temperature converter using python

In this article we are going to create a program to perform temperature conversion between the following types. celsius to Fahrenheit celsius to kelvin Fahrenheit to celsius kelvin to celsius Fahrenhiet to kelvin kelvin to Fahrenheit But before writing the code we should know the formula to perform these operations. Celsius to Fahrenheit (0°C × 9/5) […]

Read More

Comparison operations using the operator module

In this article we are going to use the operator module in python to compare two variables. The following comparisons are performed. Greater than Greater than or equal to less than less than or equal to equal All these methods will return true or false based on the operation. This module can be use if […]

Read More

strip, lstrip and rstrip in python

In this article we are going to see the following three methods. They are strip lstrip rstrip These three methods are the string formatting methods. They are used to remove characters from the string. These methods will take the characters to be removed as the arguments. strip The strip method removes the characters from the […]

Read More

functools – lru cache

In this article we are going to demonstrate the usage of lru_cache from functools as a decorator to reduce the program execution speed. Here I have written a function to calculate nth Fibonacci number, but calculating it every time takes enormous amounts of time, hence I’ve used lru_cache from functools package. lru stands for least recently used. It stores […]

Read More

Validate passwords with python

In this article we can see how to validate our password and also check the strength of our password. We can set the parameters for validation like the number of special characters required, number of upper case or small case letters required, etc. All these validations are possible with the help of a python package […]

Read More

Download and view images from an url using python

In this article we shall see how to download or view images from a url using python pillow. Downloading the images does not require any external libraries. But, we need pillow in order to view the images. Let us get started with the installation of the pillow package. If you only need to download the […]

Read More

Find unique words in a sentence or paragraph using python

In this article we shall see how to find out unique words in sentence, paragraph or files using the set data type in python. This will be extremely useful if we are creating word clouds. If you want to know more about sets and the methods associated with them, check out our previous article. Let […]

Read More

Convert json to xml using python

In this article we shall how to convert json to xml. This can be done easily by using this library called “json2xml”. Using this library we can convert json data from a string json file API whose response is JSON. Json JSON stands for JavaScript Object Notation. JSON is a lightweight format for storing and transporting data. It […]

Read More