Contact: aviboots(AT)netvision.net.il
39,960 questions
51,902 answers
573 users
lst = [123, 'C++', 'PHP', 'Python'] lst.append(3000) print(lst) ''' run: [123, 'C++', 'PHP', 'Python', 3000] '''
lst2d = [[], []] lst2d[0].append(1) lst2d[0].append(22) lst2d[1].append(3) lst2d[1].append(444) print(lst2d) for row in lst2d: for column in row: print(column, end=" ") print(end="\n") ''' run: [[1, 22], [3, 444]] 1 22 3 444 '''