Posts from Python

Concept of Inheritance, Superclass and Subclass in Python

By Neha Mishra

Here we are going to learn the basic concepts of Inheritance in Python. In order to understand what inheritance is we should first dive in superclass and subclass. Concept of Inher.... Read More

Simple Example of Linear Regression With scikit-learn in Python

By Faruque Ahamed Mollick

Linear Regression is a linear approach which is useful for finding a relationship between predictor or independent variable and response or dependent variable. In simple word, if.... Read More

How to detect strings that contain only whitespaces in Python

By Saruque Ahamed Mollick

To check if a string is containing only white spaces or not you can use isspace() method in Python. This tutorial is to show you how to detect strings that contain only whitespace.... Read More

How to remove null values from list in Python

By Saruque Ahamed Mollick

In Python programming, we may face a problem like we are having a list of strings. But the list of strings contains empty strings or null values in it. Even some values only contai.... Read More

Read an image in Python and open it in a Window

By Faruque Ahamed Mollick

Python has very powerful modules to work with image processing. There are several great image processing libraries are used by Python programmers. In this post, I am going to show .... Read More

How to read CSV file in Python using Pandas Library?

By Faruque Ahamed Mollick

CSV files are generally used to store information. We can use this CSV file programmatically to for data analysis and data processing. To do this, we need to read data from CSV pro.... Read More

Build a Number Guessing Game in Python

By Saruque Ahamed Mollick

This is a Python tutorial on how to create your own number guessing game in Python. This is actually a game that can be played with a computer with numbers. The rule of this game: .... Read More

How to get first N items from a list in Python

By Saruque Ahamed Mollick

Hello Python learner, you are here to learn how to get first n items from a list in Python. So, we will show you an easy way to fetch first n number of items from a list in Python .... Read More