Answers for "2d array python print"

0

python print 2d array as table

import numpy as np
print(np.matrix(A))
Posted by: Guest on March-02-2020
-1

python print 2d array as table

for row in A:
    for val in row:
        print '{:4}'.format(val),
    print
Posted by: Guest on March-20-2020
0

print 2d array

2-D Vectors


vector<vector<int>> vect;

for (int i = 0; i < vect.size(); i++)
    {
        for (int j = 0; j < vect[i].size(); j++)
        {
            cout << vect[i][j] << " ";
        }   
        cout << endl;
    }
Posted by: Guest on January-11-2022

Python Answers by Framework

Browse Popular Code Answers by Language