Python program to check if a string is palindrome or not

Problem Definition Make a Python program to check if the given string is palindrome or not. A string is a palindrome if it reads same from forward as well as … Read more

Python Program to Check If number is Even or Odd

Problem Definition Make a Python program to check wheater the given number is Even or Odd. Solution If a number is exactly divisible by 2 then it is an even … Read more

Python Program To Generate Fibonacci Sequence

Problem Definition Make a Python function for generating a Fibonacci sequence. The Fibonacci sequence is a series where the next term is the sum of the previous two terms. The … Read more

Python Program To Find The Sum Of Elements Of An Array or List

Problem Definition Make a Python Function which takes an array or list as input and returns the sum of its elements, for example  array[ 1, 2, 3, 4] will return … Read more

Python Program To Check Whether The Sequence Is In Arithmetic Progression

A sequence is called to Arithmetic series when the difference between two consecutive numbers remains constant throughout the series. If we express the first term as a and the difference … Read more

Python Program To Transpose A Matrix

Matrices are a multidimensional array of order m*n where m is the number of rows and n number of columns. Matrices are handy to store data. A  matrix can be … Read more

Python Program To Check Whether The Given List Is Valley Or Not

Any sequence of integers consisting of strictly decreasing values followed by strictly increasing values such that the decreasing and increasing sequence have a minimum length of 2 and the last value … Read more

Python Program To Check If A Number Is Perfect Square

Any number which can be expressed as the product of two whole equal numbers is classified as a perfect square. For example, 64 can be written as 8*8 hence 64 … Read more

Python Program To Check Whether The Number Is Prime Or Not

A prime number is a positive whole number greater than 1 which is evenly divisible only by 1 and itself. 2, 3, 5, 7, 11, 13 are the first few prime … Read more