Sep Project
Sep Project
Presented by :-
Mentored by:-
A58 – Raulji Jaydeep Singh
Prof. Ruchika Rami
A37 – Palasara Salman
A56 - Rana Amaan
WHAT IS PYTHON ?
• Python is a general purpose
interpreted interactive object
oriented and high level
programming language.
• It was first introduced in 1991by
Guido van Rossum , a Dutch
computer programmer.
• The language place strong
emphasis on code reliability and
simplicity so that the
programmers can develop
application rapidly
WHAT IS NUMPY ?
▪ INTRODUCTION
• NumPy is a Python library used for working with arrays.
• It also has functions for working in domain of linear algebra,
fourier transform, and matrices.
• NumPy was created in 2005 by Travis Oliphant. It is an open
source project and you can use it freely.
matrix = []
for i in range(row):
c=[]
for j in range(column):
j = int(input("enter a number in second array
element"+str(i)+" "+str(j)+" "))
c.append(j)
print()
matrix.append(c)
for i in range(row):
for j in range(column):
print(matrix[i][j],end=" ")
print()
Program Explanation
• The User Enter the Number of Rows for the Matrix and assign the entered value to the row
variable after converting it to an integer.
• The User Enter the Number of Columns for the Matrix and assign the entered value to the
column variable after converting it to an integer.
• Matrix[] – initialize an Empty array.
• for i in range(row): Start a loop that iterates over the range of values from 0 to row-
1.it is used for iterating through each row of the matrix.
• c=[] :-initialize an empty array.
• for j in range(column): Start a nested loop that iterates over the range of values
from 0 to column-1.it is used for iterating through each column of the current row.
• j = int(input("enter a number in second array element"+str(i)+"
"+str(j)+" ")) :- The user to Enter a Number for the current matrix
element and assign the entered value to the variable ‘j’. After
converting it an integer. The use of str(i) and str(j) is for
displaying the current position in the matrix while taking input.
• c.append(j):- Adds the entered value(‘j’) to the array ‘c’,
representing the current row.
• Print() :- Prints a newline to separate rows in the output.
• matrix.append(c) :- Appends the array of ‘c’ to the main matrix
array.
• for i in range(row): - Initiates another loop to iterate over the
rows of the matrix for printing.
• for j in range(column): - Initiates a nested loop to iterate over
the columns of the matrix for printing.
• print(matrix[i][j],end=" ") :- Prints each element of the matrix
at position ‘[i][j]’ followed by a space.
• Print() :- Prints a newline after each row to format the matrix in
a readable way.