• Posted by allwinraju
  • December 9, 2020
  • 0 Comments

Credit card number validation using Luhn’s algorithm in python

In this blog post, we shall how to validate a credit card number using Luhn’s algorithm. We shall also learn about Luhn’s algorithm where and how it is used. This blog post also contains a sample python code to validate the credit card number. Luhn’s algorithm The Luhn algorithm or Luhn formula, also known as the “modulus 10” […]

Read More

Escape and unescape HTML using python

This blog post teaches you to escape and unescape HTML strings and files using a built-in module in python called “html”. This module has two methods escape() and unescape() which lets us do this operation. 1. Escape First, let us see how to escape HTML strings and files using the escape() method from the HTML module. What is escaping […]

Read More

Delete all occurrences of an element from a list in python

In this article we shall see how to remove all occurrences of an element from a list in python assuming that our list has duplicate elements. This can be done in a number of ways. Let us look at all the possible approaches one by one. The naive approach filter method with not equal operator […]

Read More

Whatsapp date-message visualization using python

In this article we shall see how to visualize the date and the number of messages that we sent on those dates using python and matplotlib. Requirements and installation Download the dataset from here. Matplotlib for plotting the graph. Installation We can install the matplotlib from pypi.org by running the following command on the terminal. […]

Read More

Generate image CAPTCHA using python

In this article we shall see how to generate image CAPTCHA using python. This can be achieved with a few lines of code with a help of a python library called captcha. Let us get started with the installation of this package. This will be extremely helpful if you are using python as backend for […]

Read More

Lorem Ipsum generator using python

In this article, we will be using a python library called lipsum to generate random words and paragraphs. If you want to generate any random words, sentences, or paragraphs to populate your database with then this library is the way to go. Installation This library can be installed using pip from pypi.org as, We can […]

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

Writing a library in python

What are libraries in Python? Python library is a collection of functions and methods that allows you to perform many actions without writing your code. For example, the Python imaging library (PIL).is one of the core libraries for image manipulation in Python. … It makes use of Numpy, another library for numerical operations. Let’s consider a simple .py file: It defines two functions and binds […]

Read More

Must learn python libraries for everyone

I’m mentioning twenty Python libraries list that will take you places in your journey with Python and also used by Data Scientists. Let us see one by one- Pyglet Pyglet is an excellent choice for an object-oriented programming interface in developing games. In fact, it also finds use in developing other visually-rich applications for Mac […]

Read More