Category Archives: Program

Python Program to Shuffle Deck of Cards

Here in this article, we have provided a python program which can shuffle a deck of card. Prerequisite topics to create this program. Python Loop Python Modules Python Random Python Built-in functions Steps import the random and itertools in the program. using the itertool module create a list of tuples where each tuple contains the… Read More »

Python Program to Find HCF or GCD

Here we have provided two python source code to find the GCD or HCF of two numbers. Prerequisite topics to create this program. Python Input, Output Python User-Defined Function Python Recursion Python if…else statements Python For loop There are two common techniques we can use to find the HCF of two numbers, one is by… Read More »

How to Check if a Python String Contains Another String?

A string is a collection of Characters and in python creating and manipulating a string is very easy as compared to the other programming languages. Python also provides us with many string methods that can be used to perform various operations on a string. While learning python string topic, you will defiantly come across a… Read More »

Python Program to Swap Two Variables

In this article, we have provided a python source code which is capable of swapping the value of two variables. Swapping the value of two variables is a very common and easy coding problem and in every programming language, you can easily make this program. Prerequisite Topics to create this Program Python Input, Output Python… Read More »