#!/usr/bin/env python3

import numpy as np

def get_rows(a):
    return list(a)
def get_columns(a):
    return list(a.T)

def main():
    np.random.seed(0)
    a=np.random.randint(0,10, (4,4))
    print("a:", a)
    print("Rows:", get_rows(a))
    print("Columns:", get_columns(a))

if __name__ == "__main__":
    main()

[(11, 'numpy.random.seed', 'np.random.seed', True, 'import numpy as np\n'), (12, 'numpy.random.randint', 'np.random.randint', True, 'import numpy as np\n')]