Posts from Python

Print nth iteration of Lucas Sequence in Python

By Ranjeet V

We all know about the Fibonacci sequence. It is a sequence where any term is the sum of the previous two terms. The Lucas sequence is the same but with different starting values. W.... Read More

How to catch HTTP 404 error in Python

By Ranjeet V

Hi guys! In this tutorial, we will learn how to catch an HTTP 404 error in Python. There are many instances when we encounter an HTTP error with error code 404 on the internet. Thi.... Read More

Upload file to google drive using Python

By Diptam Paul

Today we will see how to upload files to Google Drive using Python. We will use the Google Drive API to do this. So go to Google Developer Console And create a new project. It may .... Read More

Create a Simple Login Form using PyQt5 in Python

By Deepak Reddy

In this module, we are going to discuss the creation of a simple login form using PyQt5 in Python. PyQt5 is a graphical user interface(GUI) tool kit that allows us to create variou.... Read More

Sort characters of a string in Python

By Pankaj Jadhao

In this tutorial, we are going to discuss on how to sort characters of the string based on first alphabet symbols followed by digits in Python. When the string contains alphanumeri.... Read More

DataFrame, date_range(), slice() in Python Pandas library

By Sushant Shaw

Hey there everyone, in this tutorial you will learn about DataFrame along with date_range() and slice()methods in Pandas. We all know, Python is a powerful language, that allows u.... Read More

Play Video in Python Using Pygame

By Deepak Reddy

In this module, we are going to discuss how to play a video file in Python using pygame. Here, we play a video file in pygame using pygame.movie. pygame.movie in Python to play vid.... Read More

Banker’s algorithm in Python

By Prashanth Gowda R S

In this tutorial, we will learn about the Banker’s algorithm also referred to as the deadlock algorithm. It simulates the allocation of the predetermined maximum possible amo.... Read More