소스코드
graph = [] for i in range(n): graph.append(list(map(int,input()))) print(graph)
입력
12345 23456 34567 45678
출력
[[1, 2, 3, 4, 5], [2, 3, 4, 5, 6], [3, 4, 5, 6, 7], [4, 5, 6, 7, 8]]