Posts from Python

How to pick a random card in Python

By Saruque Ahamed Mollick

In this Python tutorial, we will learn how to pick a random card from a deck of cards in Python. To learn how to select a random card in Python we gonna use random module. In my p.... Read More

Assert Statement in Python for Error Detection

By Pavitra Walia

We all are familiar with the word “debugging”. This term includes a variety of steps to debug a given code. One such part is the “assert statement”. In this.... Read More

How to create your Django project and modify its settings. (Part II)

By Aayush Gupta

In this tutorial, we are going to learn how to make a new Django project with the help of the Django framework we installed in the previous tutorial. This is a part of our tutorial.... Read More

How to print a deck of cards in Python

By Saruque Ahamed Mollick

Using for loops, we can easily print a deck of cards in Python. In this Python tutorial, we will show you how to print all the cards in Python using for loop. In a deck of cards, t.... Read More

Create a Python function with optional arguments

By Faruque Ahamed Mollick

We can set the default value to our Python function. That means if we don’t pass our argument value during calling a Python function, it will take a default value that we wil.... Read More

Logic Gates In Python

By Pavitra Walia

This Python tutorial is about Logic Gates in Python. We will try to learn each of the logic gates in Python with some easy examples. Logic Gates in Python All of us are familiar wi.... Read More

How to implement Dijkstra’s shortest path algorithm in Python

By Abhilash Bandla

In this Python tutorial, we are going to learn what is Dijkstra’s algorithm and how to implement this algorithm in Python. Definition:- This algorithm is used to find the sho.... Read More

Introduction to Django Framework and How to install it ? (Part I)

By Aayush Gupta

In this tutorial, we are going to learn about the Python-based Django web framework – its features, benefits and usability. Further, we will also look at how to install Djang.... Read More