## N Queens problem implementation in Python

What is N Queens Problem? The N Queens problem is: How can N queens be placed on an NxN chessboard so that no two of them attack each other? The eight queens puzzle is the problem of placing eight chess queens on an n x n chessboard so that no two queens threaten each other. Thus, a … Read more

## Different star pattern in Python

In this post we will discuss about different basic star pattern in Python. These are very basic and beginners programs, let me know in case you want me create more shapes and patterns. Star pattern : 1 * * * * * * * * * * * * * * * Program to implement … Read more

## Python program for text to speech

In this post we will write a program to convert text to speech in Python. Some people have difficulty reading large amounts of text due to dyslexia and other learning disabilities. Some people have basic literary levels. They often get frustrated trying to browse the internet because so much of it is in text form … Read more

## Highway Billboard Problem: Dynamic Programming

In this post we will understand the problem of Highway Billboard Problem and then we will implement the solution using Dynamic Programming. Problem: Let’s suppose we got a job to place billboards (advertising hoarding) on a National Highway of length M miles. The possible site for billboards are given by numbers x1 < x2 < ….. < … Read more

## Finding Mean, Median, Mode in Python without libraries

In this article, we will learn how to calculate Mean, Median and Mode with Python without any using external libraries. Mean : The mean is the average of all numbers and is sometimes called the arithmetic mean. This code calculates Mean or Average of a list containing numbers: n_num = [1, 2, 3, 4, 5] … Read more

## Program to Find Perfect Number in Python

Here we will write a program to check whether the number is a Perfect number in Python language. So, first lets start with what is a perfect number. What is a Perfect number: Perfect Number is a number in which sum of all its positive divisors excluding that number is equals to the number. For … Read more