Concatenate

  • + 0 comments
    import numpy as np
    
    n, m, p = map(int,input().split())
    l = []
    for _ in range(n):
        l.append(list(map(int, input().split())))
    n_arr = np.array(l)
    l = []
    for _ in range(m):
        l.append(list(map(int, input().split())))
    m_arr = np.array(l)
    print(np.concatenate((n_arr, m_arr), axis = 0))