Computer Science, asked by sridevikosaraju1997, 1 month ago

Merge the three arrays provided to you to form a one 4x4 array.

[Hint: Check the function np.transpose()]



Input:

Array 1: 3*3

[[7, 13, 14]

[18, 10, 17]

[11, 12, 19]]



Array 2: 1-D array

[16, 6, 1]



Array 3: 1*4 array

[[5, 8, 4, 3]]



Output:

[[7 13 14 5]

[18 10 17 8]

[11 12 19 4]

[16 6 1 3]]

Answers

Answered by rishikasrivastav88
4

Answer:

Merge the three arrays provided to you to form a one 4x4 array.

[Hint: Check the function np.transpose()]

Input:

Array 1: 3*3

[[7, 13, 14]

[18, 10, 17]

[11, 12, 19]]

Array 2: 1-D array

[16, 6, 1]

Array 3: 1*4 array

[[5, 8, 4, 3]]

Output:

[[7 13 14 5]

[18 10 17 8]

[11 12 19 4]

[16 6 1 3]]

Answered by rishabhchauhan880095
3

Answer:

main part of problem.

y=np.vstack((list_1,list_2))

list_3=np.transpose(list_3)

z=np.hstack((y,list_3))

final_array=z

print(final_array)

Similar questions