# Month: April 2022

## Program to transpose a Matrix in Python

Program to transpose a Matrix in Python. This program contains matrices assignment, for loop and print statement. This program is for beginners, class 11,12 and B Tech computer science students. Program to transpose a Matrix in Python Source code : i=0 # Define a matrix A A = [[15, 64, 35], [2, 14,96], [54, 17,99], …

## Program to Add Two Matrices in Python

Program to Add Two Matrices in Python. This program contains matrices assignment, Nested for loop, Arithmetic operation and print statement. This is for Beginners, class 11,12 and B Tech computer science students. Program to Add Two Matrices What is Matrix? In mathematics, matrix is a rectangular array of numbers, symbols or expressions arranged in the …

## Program to sort the elements of an Array in descending order in python

Program to sort the elements of an Array in descending order in python. The program contains for loop iterative statements, comparison statements, print statement and Array initialisation. This is for Beginners, class 11,12 and B Tech computer science students. Program to sort the elements of an Array in descending order What is an Array ? …

## Program to sort the elements of an Array in ascending order in Python

Program to sort the elements of an Array in ascending order in Python. The program contains array initialisation, for loop iteration statements nested and print statements. This program is for Beginners, class 11,12 and B Tech students. Program to sort the elements of an Array in ascending order What is an Array ? A Python …

## Program to right rotate the elements of an Array in python

Program to right rotate the elements of an Array in python. This program contains For iterative loops, initialisation of Array and print statements. This is for beginners, class 11,12 and B Tech computer science students. Program to right rotate the elements of an Array What is an Array? A Python Array is a collection of common …

## Program to print the sum of all elements in an Array in Python

Program to print the sum of all elements in an Array in Python. The program contains array initialisation, variable assignment, print statement and for loop iterative statements. This program is for Beginners, class 11,12 and B Tech computer science students. Program to print the sum of all elements in an Array What is an Array …

## Program to print the number of elements present in an Array in Python

Program to print the number of elements present in an Array in Python. This function uses array initialisation, inbuilt function and print statement. This is for beginners, class 11,12 and B Tech computer science students. Program to print the number of elements present in an Array What is an Array ? A Python Array is a …

## Program to print the smallest element in an Array in Python

Program to print the smallest element in an Array in Python. The program contains array initialisation, for iterative statement and if comparative statement. This program is for Beginners, class 11,12 and B Tech computer science students. Program to print the smallest element in an Array What is an Array ? A Python Array is a collection …

## Program to print the Largest Element in an Array in Python

Program to print the Largest Element in an Array in Python. This program contains array initialisation, if conditional statement and for loop. This program is for beginners, class 11,12 and B tech Computer science students. Program to print the Largest Element in an Array What is an Array ? A Python Array is a collection of …

## Program to print the elements of an array present on odd position in Python

Program to print the elements of an array present on odd position in Python. This program contains array initialisation, print statement and for loop. This is useful for beginners, class 11, 12 and B Tech computer science students. Program to print the elements of an array present on odd position What is an Array ? …