Advanced Technology Lab 4
Advanced Technology Lab 4
PROGRAM:
R = int(input("Enter the number of rows:"))
C = int(input("Enter the number of columns:"))
# Initialize matrix
matrix = []
print("Enter the entries rowwise:")
# creating a vector1
# vector as row
vector1 = np.array(list1)
# creating a vector 2
# vector as column
vector2 = np.array(list2)
OUTPUT:
Horizontal Vector
[1 2 3]
----------------
Vertical Vector
[[10]
[20]
[30]]