s =[[1, 2, 3, 4, 5],[6, 7, 8, 9, 10],[11, 12, 13, 14, 15]]
print(s[1]) #[6, 7, 8, 9, 10]
print(s[1][2]) #8
rows = 3
cols = 5
s =[]
for row in range(rows):
s += [[0]*cols] #[0, 0, 0, 0, 0]
리스트 함축을 이용하는 방법
rows = 3 cols = 5 s =[([0]*cols) for row in range(rows)]