I have a 9 x 6 matrix (each value is a string) and need to print columns as rows, which is 6 x 9 matrix.
So, when I execute the following code it just prints the same without the strings.
No matter what I try, it's just does not work.
Here is the code : so when I just print row[0], it prints the row as column, but it doesn't work using the nested for loop
So, when I execute the following code it just prints the same without the strings.
No matter what I try, it's just does not work.
Here is the code : so when I just print row[0], it prints the row as column, but it doesn't work using the nested for loop
for row in grid: # print(row[0], end=" ") for col in row: print(col, end=" ") print()Any thoughts and ideas, please ?