# Support Our Site

To ensure we can continue delivering content and maintaining a free platform for all users, we kindly request that you disable your adblocker. Your contribution greatly supports our site's growth and development.

# Category: Programs

• PROGRAMS

## Find Missing Number in a given Array Using Python

Problem DefinitionFind the missing numbers in a given list or array using Python.For example in the arr = [1,2,4,5] the integer '3' is the missing number.There are multiple ways to solve this problem using Python. In this article, we will cover the most …

• PROGRAMS

## Sending Emails With CSV Attachment Using Python

Sending emails with attachments is a common task in many applications. It allows you to share data and documents easily. In this article, we'll explore how to send emails with CSV file attachments using Python.In this tutorial, we will learn how to send …

• PROGRAMS

## Sending Email With Zip Files Using Python

In this tutorial, we will learn how to send emails with zip files using Python's built-in modules.Pre-RequirementsI am assuming that you already have an SMTP (Simple Mail Transfer Protocol ) server setup if not you can use Gmail SMTP or something like ma…

• PROGRAMS

## Python Program To Reverse a Sentence

Problem DefinitionCreate a python program to reverse a sentence.AlgorithmTake a string as input.Convert the sentence into a list of words.Join the list in the reverse order which ultimately is the reversed sentence.Programsentence = "dread it run from it…

• PROGRAMS

## Python Program to Convert Octal Number to Decimal and vice-versa

The octal numeral system, or oct for short, is the base-8 number system and uses the digits 0 to 7. The main characteristic of an Octal Numbering System is that there are only 8 distinct counting digits from 0 to 7 with each digit having a weight or valu…

• PROGRAMS

## Python Program to Convert Binary Number to Decimal and Vice-Versa

A binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols 0 and 1.The decimal numeral system is the standard system for denoting integer and non-integer numbers.All decimal numbers can be con…

• PROGRAMS

## Python Programs to Create Pyramid and Patterns

In this article, we will go over different ways to generate pyramids and patters in Python.Half pyramid of asterisksdef half_pyramid(rows): for i in range(rows): print('*' * (i+1)) half_pyramid(6)Output* ** *** **** ***** ******An alternate …

• PROGRAMS

## Python Program to Find the Factors of a Number

The factor of any number is a whole number which exactly divides the number into a whole number without leaving any remainder.For example, 3 is a factor of 9 because 3 divides 9 evenly leaving no remainder.ProblemCreate a Python program to find all the f…

• PROGRAMS

## Python Program to Calculate Power of a Number

Problem DefinitionCreate a Python program to take two numbers from the user one being the base number another the exponent then calculate the power.Programimport math base_number = float(input("Enter the base number")) exponent = float(input("Enter the …