Gireesha Devara has Published 249 Articles

Python Program to Display Upper Triangular Matrix

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:51:03

1K+ Views

A matrix is a two-dimensional array of many numbers arranged in rows and columns. A square matrix (whose rows and columns has same number of elements) has two diagonals. One is the Primary diagonal - located from the top left corner to the bottom right corner of a square ... Read More

Python Program to Recursively Linearly Search an Element in an Array

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:39:34

1K+ Views

Linear search is the simplest method of searching for an element in an array. It is a sequential searching algorithm that starts from one end and checks every element of the array until the desired element is found. Recursion means a function that calls itself, while using a recusive ... Read More

Python Program to Multiply two Matrices by Passing Matrix to a Function

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:38:14

159 Views

A matrix is a two-dimensional array of many numbers arranged in rows and columns. And it is called as m X n matrix where m and n are the dimensions. In general, the multiplication of two matrices can be possible only if the number of columns in the first matrix ... Read More

Python Program To Find the Trace and Normal of a given Matrix

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:35:50

1K+ Views

A matrix is defined as a set of numbers arranged in rows and columns. A matrix with m rows and n columns is called an m X n matrix and m and n are called its dimensions. A matrix is a two dimensional array, which is created by using lists ... Read More

Python Program to Multiply to Matrix Using Multi-dimensional Arrays

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:34:12

201 Views

A matrix is a set of numbers arranged in rows and columns. A matrix with m rows and n columns is called an m X n matrix and m and n are called its dimensions. A matrix is a two dimensional array, which is created by using lists or NumPy ... Read More

Python Program to Add Two Matrix Using Multi-dimensional Array

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:32:53

552 Views

A matrix is a two-dimensional array of many numbers arranged in rows and columns. The addition of two matrices is a process of adding corresponding elements of two matrices and placing the sum in corresponding position of the resultant matrix. And this can be possible, only if both the matrices ... Read More

Python Program to Interchange the Diagonals of a matrix using predefined methods

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:31:21

169 Views

The diagonals are nothing but crosswise elements of a matrix. A square matrix has two diagonals. One is the Primary diagonal - located from the top left corner to the bottom right corner of a square matrix. And the second one is the Secondary diagonal - located from ... Read More

Python Program to Interchange Elements of First and Last in a Matrix Across Columns

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:29:12

117 Views

A matrix is a two-dimensional array of many numbers arranged in rows and columns form. Python does not have any data type to represent a matrix, but we can use a nested list or NumPy array as a matrix. See the below input output scenarios to understand how to interchange ... Read More

Python Program to Interchange Elements of First and Last in a Matrix Across Rows

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:26:53

54 Views

A matrix is a set of numbers arranged in rows and columns format. In python, a matrix can not be created directly. Instead, we can use a nested list or NumPy array as a matrix. The interchanging of first and last row elements of a matrix is demonstrated below. Input ... Read More

How do I create a constant in Python?

Gireesha Devara

Gireesha Devara

Updated on 15-May-2023 16:05:28

1K+ Views

The constants and variables are used to store data values in programming. A variable generally refers to a value that can change over time. Whereas, a constant is a type of variable whose value cannot be changed during a program’s execution. There are only six built-in constants available in Python ... Read More

Advertisements