lst2=[] #list to store entire row for i in range(5): lst1=[] #list to store each element of a row for i in range(5): tmp=int(input()) lst1.append(tmp) #incerting each elements of a row lst2.append(lst1) #incerting the entire row in another list for i in range(len(lst2)): for j in range(len(lst1)): print(lst2[i][j],end=' ') #i indicates row number and j indicates column number print('')