Category Archives: Program

Python Program to Merge Mails

Here in this Python tutorial, you will learn how to merge mails using Python. Here we have provided a python logical source code that can merge emails into one. Prerequisite Topics to create this Program Python file handling Python file I/O python String methods Mail Merging: When we want to send the same mail body or content to… Read More »

Python Program to Count the Number of Each Vowel

Here in this article, we have provided two python source codes that count the number of vowels present in the user entered string. Prerequisite Topics to Create this Program Python Loop Python Input-Output Python string Python member operators Python string methods Python string count method Python Dictionary Python Program to Count the Number of Each Vowel (Using For… Read More »

Python Program to Illustrate Different Set Operations

A set is a mutable collection of unordered and unique elements. Python set has many inbuilt methods that can be used to perform various set operations, such as union and intersection. Here in this article, we have provided python source code to illustrate different set operations. Please note that in order to keep the code simple and comprehensible… Read More »

Python Program to Sort Words in Alphabetic Order

Here in this article, we have provided a python source code that asks the user to enter a string, and in the output, it sorts the string words in the alphabetic order. Prerequisite topics to create this program. Python Loop Python Strings Python String Methods In python, we have many in-built string methods which can be used to… Read More »

Python Program to Transpose a Matrix

There are several operations that we can perform on matrices. The transpose of a matrix is one such operation. The resulting matrix has interchanged rows and columns of the original one. Here in this article, we have provided python source code for transposing a matrix. Matrix and Transpose A matrix is a 2-dimensional array, which is formed by… Read More »

Python Program to Add Two Matrices

Here in this article, we are going to provide source code for a python program that adds two matrices using the nested loop. A matrix is simply defined as some arrangement of numbers that is formed by using columns and rows. In Python, we use a list of lists to represent a matrix. If each element of the… Read More »

Python Program to Convert Decimal to Binary Using Recursion

Here in this article, we have provided a python source code that use the recursion function to convert the user entered Decimal number to the equivalent Binary Number. Prerequisite topics to create this program. Python Input, Output Python User-Defined Function Python Recursion Python if…else statements Steps: Ask the user to enter a decimal number. Create a recursive function… Read More »

Python Program to Find Factorial of Number Using Recursion

Here in this article, we have provided a python source code, which asks the user to enter a number and in the output display its factorial. Here rather than using a Loop structure we have created this program using the recursive technique. Prerequisite topics to create this program. Python Input, Output Python User-Defined Function Python Recursion Python if…else… Read More »