Python for beginners:
https://www.youtube.com/watch?v=egq7Z...
#Code to take Matrix input from user in Python
row=int(input("Enter the number of row:"));
column=int(input("Enter the number of columns:"));
l=[];
rs=[];
i=0;
j=0;
while i<row:
while j<column:
u=int(input());
rs.append(u);
j=j+1;
l.append(rs);
rs=[];
j=0;
i=i+1;
l
#Code to take Matrix input from user in Python
row=int(input("Enter the number of row:"));
column=int(input("Enter the number of columns:"));
l=[];
rs=[];
i=0;
j=0;
while i<row:
while j<column:
u=int(input());
rs.append(u);
j=j+1;
l.append(rs);
rs=[];
j=0;
i=i+1;
l
0 Comments:
Post a Comment