I'm trying to transpose a 2x3 2D array (rows become columns, vice versa). The user inputs the 6 numbers, then I have to do the rest. I'm not allowed to import any libraries. Here's what I have so far:
array1 = [[0 for column in range (2)] for row in range (3)]
for i in range (3):
for j in range (2):
array1[i][j] = int(input())
for i in range (3):
for j in range (2):
if j == 0:
print (array1[i][j], end = " ")
else:
print (array1[i][j])
This code stores and prints a 2x3 2D array, any help on getting me further?